user32: Don't check for comctl32 class for integer atoms.
This commit is contained in:
parent
52e19da50d
commit
fb4441df73
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue