Commit d15aee92 authored by Alexandre Julliard's avatar Alexandre Julliard

dinput: Don't bother to delete critical sections at process exit.

parent 20ff6bc9
...@@ -1634,7 +1634,7 @@ void check_dinput_hooks(LPDIRECTINPUTDEVICE8W iface) ...@@ -1634,7 +1634,7 @@ void check_dinput_hooks(LPDIRECTINPUTDEVICE8W iface)
LeaveCriticalSection(&dinput_hook_crit); LeaveCriticalSection(&dinput_hook_crit);
} }
BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserv) BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved)
{ {
switch(reason) switch(reason)
{ {
...@@ -1643,6 +1643,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserv) ...@@ -1643,6 +1643,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserv)
DINPUT_instance = inst; DINPUT_instance = inst;
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (reserved) break;
DeleteCriticalSection(&dinput_hook_crit); DeleteCriticalSection(&dinput_hook_crit);
break; break;
} }
......
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