rsaenh: Don't bother to free memory at process exit.
This commit is contained in:
parent
47302fd29d
commit
a1f5b109ed
|
@ -358,7 +358,7 @@ static struct handle_table handle_table;
|
|||
*
|
||||
* Initializes and destroys the handle table for the CSP's handles.
|
||||
*/
|
||||
int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
|
||||
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID reserved)
|
||||
{
|
||||
switch (fdwReason)
|
||||
{
|
||||
|
@ -369,10 +369,11 @@ int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
|
|||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (reserved) break;
|
||||
destroy_handle_table(&handle_table);
|
||||
break;
|
||||
}
|
||||
return 1;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
|
Loading…
Reference in New Issue