We must return the atom of the class in GetClassInfoEx instead of just

TRUE.
This commit is contained in:
James Hatheway 2000-06-18 17:19:38 +00:00 committed by Alexandre Julliard
parent 13b1864e97
commit 9fa09e7ecb
1 changed files with 9 additions and 3 deletions

View File

@ -1251,7 +1251,9 @@ BOOL16 WINAPI GetClassInfoEx16( HINSTANCE16 hInstance, LPCSTR name, WNDCLASSEX16
wc->lpszClassName = (SEGPTR)CLASS_GetClassNameA( classPtr );
if (HIWORD(wc->lpszClassName)) /* Make it a SEGPTR */
wc->lpszClassName = SEGPTR_GET( (LPSTR)wc->lpszClassName );
return TRUE;
/* We must return the atom of the class here instead of just TRUE. */
return atom;
}
@ -1281,7 +1283,9 @@ BOOL WINAPI GetClassInfoExA( HINSTANCE hInstance, LPCSTR name,
wc->hbrBackground = (HBRUSH)classPtr->hbrBackground;
wc->lpszMenuName = CLASS_GetMenuNameA( classPtr );
wc->lpszClassName = CLASS_GetClassNameA( classPtr );
return TRUE;
/* We must return the atom of the class here instead of just TRUE. */
return atom;
}
@ -1311,7 +1315,9 @@ BOOL WINAPI GetClassInfoExW( HINSTANCE hInstance, LPCWSTR name,
wc->hbrBackground = (HBRUSH)classPtr->hbrBackground;
wc->lpszMenuName = CLASS_GetMenuNameW( classPtr );
wc->lpszClassName = CLASS_GetClassNameW( classPtr );;
return TRUE;
/* We must return the atom of the class here instead of just TRUE. */
return atom;
}