secur32: Don't bother to free memory at process exit.
This commit is contained in:
parent
5d8cb87629
commit
b7cdc0afde
|
@ -1177,15 +1177,16 @@ BOOLEAN WINAPI TranslateNameW(
|
|||
/***********************************************************************
|
||||
* DllMain (SECUR32.0)
|
||||
*/
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
|
||||
{
|
||||
if (fdwReason == DLL_PROCESS_ATTACH)
|
||||
switch (reason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
SECUR32_initializeProviders();
|
||||
}
|
||||
else if (fdwReason == DLL_PROCESS_DETACH)
|
||||
{
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (reserved) break;
|
||||
SECUR32_freeProviders();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue