diff options
Diffstat (limited to 'chrome_frame/bho.cc')
-rw-r--r-- | chrome_frame/bho.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome_frame/bho.cc b/chrome_frame/bho.cc index f685166..5118750 100644 --- a/chrome_frame/bho.cc +++ b/chrome_frame/bho.cc @@ -316,9 +316,10 @@ bool PatchHelper::InitializeAndPatchProtocolsIfNeeded() { _pAtlModule->m_csStaticDataInitAndTypeInfo.Lock(); if (state_ == UNKNOWN) { - // If we're going to start patching things, we'd better make sure that we - // stick around for ever more: - PinModule(); + // If we're going to start patching things for reals, we'd better make sure + // that we stick around for ever more: + if (!IsUnpinnedMode()) + PinModule(); HttpNegotiatePatch::Initialize(); |