Commit 43806217 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Use in GetClassInfoW the same hack for systemclasses as in

GetClassInfoA (winword 97 with native comctl32).
parent ab7e613f
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment