Alexandre Julliard : user32: Don' t check for comctl32 class for integer atoms.

Alexandre Julliard julliard at winehq.org
Thu Dec 12 12:48:07 CST 2013


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec 12 12:05:36 2013 +0100

user32: Don't check for comctl32 class for integer atoms.

---

 dlls/user32/class.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/class.c b/dlls/user32/class.c
index 349aedf..d40d22e 100644
--- a/dlls/user32/class.c
+++ b/dlls/user32/class.c
@@ -311,6 +311,8 @@ static CLASS *CLASS_FindClass( LPCWSTR name, HINSTANCE hinstance )
 
     GetDesktopWindow();  /* create the desktop window to trigger builtin class registration */
 
+    if (!name) return NULL;
+
     for (;;)
     {
         USER_Lock();
@@ -324,7 +326,7 @@ static CLASS *CLASS_FindClass( LPCWSTR name, HINSTANCE hinstance )
             }
             else
             {
-                if (!name || strcmpiW( class->name, name )) continue;
+                if (strcmpiW( class->name, name )) continue;
             }
             if (!class->local || class->hInstance == hinstance)
             {
@@ -334,6 +336,7 @@ static CLASS *CLASS_FindClass( LPCWSTR name, HINSTANCE hinstance )
         }
         USER_Unlock();
 
+        if (atom) break;
         if (!is_comctl32_class( name )) break;
         if (GetModuleHandleW( comctl32W )) break;
         if (!LoadLibraryW( comctl32W )) break;




More information about the wine-cvs mailing list