rpcrt4: Do nothing when DllMain is called because the process is exiting.
This commit is contained in:
parent
0b2ea8aaf5
commit
bf5c3019a3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue