Index: remoting/host/win/core.cc |
diff --git a/remoting/host/win/core.cc b/remoting/host/win/core.cc |
index aeeb457de07c87c1c7f6ed719eeca32bd578bd1b..461e4a8fd64b8bc378b38fc94a53b8a417769569 100644 |
--- a/remoting/host/win/core.cc |
+++ b/remoting/host/win/core.cc |
@@ -4,9 +4,15 @@ |
#include <windows.h> |
+// PsDllMain is the entry point of the proxy/stub code generated by MIDL. |
+extern "C" BOOL WINAPI PsDllMain(HINSTANCE instance, |
+ DWORD reason, |
+ void* reserved); |
+ |
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void* reserved) { |
if (reason == DLL_PROCESS_ATTACH) |
DisableThreadLibraryCalls(instance); |
- return TRUE; |
+ // Initialize the proxy/stub code as well. |
+ return PsDllMain(instance, reason, reserved); |
} |