We must return the atom of the class in GetClassInfoEx instead of just
TRUE.
diff --git a/windows/class.c b/windows/class.c
index c8b39d1..3464423 100644
--- a/windows/class.c
+++ b/windows/class.c
@@ -1251,7 +1251,9 @@
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 @@
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 @@
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;
}