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

This commit is contained in:
Alexandre Julliard 2013-12-12 12:05:36 +01:00
parent 52e19da50d
commit fb4441df73
1 changed files with 4 additions and 1 deletions

View File

@ -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;