Use in GetClassInfoW the same hack for systemclasses as in

GetClassInfoA (winword 97 with native comctl32).
This commit is contained in:
Marcus Meissner 1999-09-03 12:28:20 +00:00 committed by Alexandre Julliard
parent ab7e613f81
commit 4380621702
1 changed files with 9 additions and 3 deletions

View File

@ -1184,11 +1184,17 @@ BOOL WINAPI GetClassInfoW( HINSTANCE hInstance, LPCWSTR name,
TRACE("%x %p %p\n",hInstance, name, wc);
if (!(atom = GlobalFindAtomW( name )) ||
!(classPtr = CLASS_FindClassByAtom( atom, hInstance )) ||
(classPtr->hInstance && (hInstance != classPtr->hInstance)))
if ( !(atom=GlobalFindAtomW(name)) ||
!(classPtr=CLASS_FindClassByAtom(atom,hInstance))
)
return FALSE;
if (classPtr->hInstance && (hInstance != classPtr->hInstance)) {
if (hInstance)
return FALSE;
else
WARN("systemclass %s (hInst=0) demanded but only class with hInst!=0 found\n",debugstr_w(name));
}
wc->style = classPtr->style;
wc->lpfnWndProc = (WNDPROC)WINPROC_GetProc( classPtr->winproc,
WIN_PROC_32W );