Alexandre Julliard : wined3d: Don' t bother to unregister classes at process exit.

Alexandre Julliard julliard at winehq.org
Tue May 14 15:34:11 CDT 2013


Module: wine
Branch: master
Commit: 02d56bd3a217a20a6e2aa8e53bbb8f6c099b47fe
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=02d56bd3a217a20a6e2aa8e53bbb8f6c099b47fe

Author: Alexandre Julliard <julliard at 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;
 }




More information about the wine-cvs mailing list