From 43806217024bcf69e6d28305d22212a601853d65 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 3 Sep 1999 12:28:20 +0000 Subject: [PATCH] Use in GetClassInfoW the same hack for systemclasses as in GetClassInfoA (winword 97 with native comctl32). --- windows/class.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/windows/class.c b/windows/class.c index a5f555fd97..6673e876ff 100644 --- a/windows/class.c +++ b/windows/class.c @@ -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 ); -- 2.32.0.93.g670b81a890