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

This commit is contained in:
Alexandre Julliard 2013-05-15 10:26:18 +02:00
parent 5d8cb87629
commit b7cdc0afde
1 changed files with 6 additions and 5 deletions

View File

@ -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();
}