Vincent Povirk : rpcrt4: Do nothing when DllMain is called because the process is exiting.
Module: wine Branch: master Commit: bf5c3019a39be89221b5386bfeecb390ef55362f URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf5c3019a39be89221b5386bfe... Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Thu Mar 29 10:52:29 2012 -0500 rpcrt4: Do nothing when DllMain is called because the process is exiting. --- dlls/rpcrt4/rpcrt4_main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/rpcrt4/rpcrt4_main.c b/dlls/rpcrt4/rpcrt4_main.c index 53f3bbd..cb6ff30 100644 --- a/dlls/rpcrt4/rpcrt4_main.c +++ b/dlls/rpcrt4/rpcrt4_main.c @@ -138,6 +138,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) break; case DLL_PROCESS_DETACH: + if (lpvReserved) break; /* do nothing if process is shutting down */ RPCRT4_destroy_all_protseqs(); RPCRT4_ServerFreeAllRegisteredAuthInfo(); DeleteCriticalSection(&uuid_cs);
participants (1)
-
Alexandre Julliard