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(
/***********************************************************************
* 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();
}
......
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