crypt32: Don't bother to free memory at process exit.
This commit is contained in:
parent
0f3523b101
commit
99bf9ee8e0
|
@ -45,14 +45,12 @@ BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, PVOID pvReserved)
|
|||
crypt_oid_init();
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (pvReserved) break;
|
||||
crypt_oid_free();
|
||||
crypt_sip_free();
|
||||
root_store_free();
|
||||
default_chain_engine_free();
|
||||
/* Don't release the default provider on process shutdown, there's
|
||||
* no guarantee the provider dll hasn't already been unloaded.
|
||||
*/
|
||||
if (hDefProv && !pvReserved) CryptReleaseContext(hDefProv, 0);
|
||||
if (hDefProv) CryptReleaseContext(hDefProv, 0);
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue