Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: ceee/ie/plugin/bho/executor.cc

Issue 5778002: Pin the Module after we register a hook.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/plugin/bho/executor.cc
===================================================================
--- ceee/ie/plugin/bho/executor.cc (revision 68858)
+++ ceee/ie/plugin/bho/executor.cc (working copy)
@@ -101,6 +101,12 @@
return E_FAIL;
}
+ // We have seen a case where a hook may call us in the Broker process
+ // but the DLL is not loaded anymore... This is weird... But to make sure
+ // this doesn't cause a crash when it happens, we pin ourselves here to make
+ // sure we won't be called when unloaded.
+ PinModule();
+
// We unfortunately can't Send a synchronous message here.
// If we do, any calls back to the broker fail with the following error:
// "An outgoing call cannot be made since the application is dispatching an
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698