Alexandre Julliard : wined3d: Don' t bother to unregister classes at process exit.
Module: wine Branch: master Commit: 02d56bd3a217a20a6e2aa8e53bbb8f6c099b47fe URL: http://source.winehq.org/git/wine.git/?a=commit;h=02d56bd3a217a20a6e2aa8e53b... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue May 14 11:30:43 2013 +0200 wined3d: Don't bother to unregister classes at process exit. --- dlls/wined3d/wined3d_main.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index f49e5bc..50bee78 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -521,18 +521,15 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) return wined3d_dll_init(hInstDLL); case DLL_PROCESS_DETACH: + if (lpv) break; return wined3d_dll_destroy(hInstDLL); case DLL_THREAD_DETACH: - { if (!context_set_current(NULL)) { ERR("Failed to clear current context.\n"); } return TRUE; - } - - default: - return TRUE; } + return TRUE; }
participants (1)
-
Alexandre Julliard