Index: remoting/host/plugin/host_plugin.cc |
=================================================================== |
--- remoting/host/plugin/host_plugin.cc (revision 180437) |
+++ remoting/host/plugin/host_plugin.cc (working copy) |
@@ -450,9 +450,12 @@ |
} // 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: |