diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c index a428cc70767..d0fc5befd66 100644 --- a/dlls/rsaenh/rsaenh.c +++ b/dlls/rsaenh/rsaenh.c @@ -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; } /******************************************************************************