Add return value to error message
Jakob Eriksson
jakov at vmlinux.org
Mon Jan 3 08:25:29 CST 2005
What's up here with GetObject() ?
-------------- next part --------------
Index: dlls/gdi/tests/gdiobj.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/tests/gdiobj.c,v
retrieving revision 1.4
diff -u -r1.4 gdiobj.c
--- dlls/gdi/tests/gdiobj.c 27 Dec 2004 17:46:36 -0000 1.4
+++ dlls/gdi/tests/gdiobj.c 3 Jan 2005 14:24:45 -0000
@@ -33,6 +33,7 @@
{
LOGFONTA lf, lfout;
HFONT hfont;
+ int ret;
memset(&lf, 0, sizeof lf);
@@ -47,8 +48,9 @@
hfont = CreateFontIndirectA(&lf);
ok(hfont != 0, "CreateFontIndirect failed\n");
- ok(GetObjectA(hfont, sizeof(lfout), &lfout) == sizeof(lfout),
- "GetObject returned wrong size\n");
+ ret = GetObjectA(hfont, sizeof(lfout), &lfout);
+ ok(ret == sizeof(lfout),
+ "GetObject returned %d expected %d\n", ret, sizeof(lfout));
ok(!memcmp(&lfout, &lf, FIELD_OFFSET(LOGFONTA, lfFaceName)), "fonts don't match\n");
ok(!lstrcmpA(lfout.lfFaceName, lf.lfFaceName),
More information about the wine-patches
mailing list