Commit b7cdc0af authored by Alexandre Julliard's avatar Alexandre Julliard

secur32: Don't bother to free memory at process exit.

parent 5d8cb876
...@@ -1177,15 +1177,16 @@ BOOLEAN WINAPI TranslateNameW( ...@@ -1177,15 +1177,16 @@ BOOLEAN WINAPI TranslateNameW(
/*********************************************************************** /***********************************************************************
* DllMain (SECUR32.0) * 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); DisableThreadLibraryCalls(hinstDLL);
SECUR32_initializeProviders(); SECUR32_initializeProviders();
} break;
else if (fdwReason == DLL_PROCESS_DETACH) case DLL_PROCESS_DETACH:
{ if (reserved) break;
SECUR32_freeProviders(); SECUR32_freeProviders();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment