| Index: remoting/host/plugin/host_plugin.cc
|
| diff --git a/remoting/host/plugin/host_plugin.cc b/remoting/host/plugin/host_plugin.cc
|
| index 8b465ea3da791be3f154f25a7d64e3c38b12ab3d..a55c309206afc35b7714971609769d6c9da7f8ee 100644
|
| --- a/remoting/host/plugin/host_plugin.cc
|
| +++ b/remoting/host/plugin/host_plugin.cc
|
| @@ -450,9 +450,12 @@ NPError SetWindow(NPP instance, NPWindow* pNPWindow) {
|
| } // namespace
|
|
|
| #if defined(OS_WIN)
|
| +HMODULE g_hModule = NULL;
|
| +
|
| BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved) {
|
| switch (dwReason) {
|
| case DLL_PROCESS_ATTACH:
|
| + g_hModule = hModule;
|
| DisableThreadLibraryCalls(hModule);
|
| break;
|
| case DLL_PROCESS_DETACH:
|
|
|