user32: Delete the static critical section when unloading the dll.

This commit is contained in:
Francois Gouget 2011-11-17 09:54:45 +01:00 committed by Alexandre Julliard
parent 7b1d685634
commit 1b1433a152

View file

@ -336,6 +336,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
break;
case DLL_PROCESS_DETACH:
USER_unload_driver();
DeleteCriticalSection(&user_section);
break;
}
return ret;