Alexandre Julliard : wintab32: 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: 9cf94e30b2ef8140faca7c0268a1ef08329446f5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9cf94e30b2ef8140faca7c0268a1ef08329446f5

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue May 14 11:27:40 2013 +0200

wintab32: Don't bother to unregister classes at process exit.

---

 dlls/wintab32/wintab32.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/wintab32/wintab32.c b/dlls/wintab32/wintab32.c
index 51cba6a..0633ea8 100644
--- a/dlls/wintab32/wintab32.c
+++ b/dlls/wintab32/wintab32.c
@@ -99,12 +99,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
                 return FALSE;
             break;
         case DLL_PROCESS_DETACH:
+            if (lpReserved) break;
             TRACE("Detaching\n");
-            if (hwndDefault)
-            {
-                DestroyWindow(hwndDefault);
-                hwndDefault = 0;
-            }
+            if (hwndDefault) DestroyWindow(hwndDefault);
             TABLET_Unregister();
             DeleteCriticalSection(&csTablet);
             break;




More information about the wine-cvs mailing list