From 02d56bd3a217a20a6e2aa8e53bbb8f6c099b47fe Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 14 May 2013 11:30:43 +0200 Subject: [PATCH] wined3d: Don't bother to unregister classes at process exit. --- dlls/wined3d/wined3d_main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index f49e5bcdd00..50bee781130 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; }