mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:45:39 +00:00
rpcrt4: Delete the static critical sections when unloading the dll.
This commit is contained in:
parent
7454791643
commit
92ff5f3548
|
@ -1078,6 +1078,8 @@ void RPCRT4_destroy_all_protseqs(void)
|
||||||
destroy_serverprotoseq(cps);
|
destroy_serverprotoseq(cps);
|
||||||
}
|
}
|
||||||
LeaveCriticalSection(&server_cs);
|
LeaveCriticalSection(&server_cs);
|
||||||
|
DeleteCriticalSection(&server_cs);
|
||||||
|
DeleteCriticalSection(&listen_cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@ -1321,6 +1323,7 @@ void RPCRT4_ServerFreeAllRegisteredAuthInfo(void)
|
||||||
HeapFree(GetProcessHeap(), 0, auth_info);
|
HeapFree(GetProcessHeap(), 0, auth_info);
|
||||||
}
|
}
|
||||||
LeaveCriticalSection(&server_auth_info_cs);
|
LeaveCriticalSection(&server_auth_info_cs);
|
||||||
|
DeleteCriticalSection(&server_auth_info_cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
|
@ -140,6 +140,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
RPCRT4_destroy_all_protseqs();
|
RPCRT4_destroy_all_protseqs();
|
||||||
RPCRT4_ServerFreeAllRegisteredAuthInfo();
|
RPCRT4_ServerFreeAllRegisteredAuthInfo();
|
||||||
|
DeleteCriticalSection(&uuid_cs);
|
||||||
|
DeleteCriticalSection(&threaddata_cs);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue