rpcrt4: Do nothing when DllMain is called because the process is exiting.

This commit is contained in:
Vincent Povirk 2012-03-29 10:52:29 -05:00 committed by Alexandre Julliard
parent 0b2ea8aaf5
commit bf5c3019a3
1 changed files with 1 additions and 0 deletions

View File

@ -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);