wined3d: Delete the static critical sections when unloading the dll.

This commit is contained in:
Francois Gouget 2011-11-17 09:54:54 +01:00 committed by Alexandre Julliard
parent 1b1433a152
commit 54bcda10e5
1 changed files with 2 additions and 0 deletions

View File

@ -382,6 +382,8 @@ static BOOL wined3d_dll_destroy(HINSTANCE hInstDLL)
HeapFree(GetProcessHeap(), 0, wined3d_settings.logo); HeapFree(GetProcessHeap(), 0, wined3d_settings.logo);
UnregisterClassA(WINED3D_OPENGL_WINDOW_CLASS_NAME, hInstDLL); UnregisterClassA(WINED3D_OPENGL_WINDOW_CLASS_NAME, hInstDLL);
DeleteCriticalSection(&wined3d_wndproc_cs);
DeleteCriticalSection(&wined3d_cs);
return TRUE; return TRUE;
} }