gdi32/tests: use ret in test_CreateFontIndirect()

Austin English austinenglish at gmail.com
Sat May 22 01:29:51 CDT 2010


Passes WTB:
https://testbot.winehq.org/JobDetails.pl?Key=2239

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 72cf9be..4f06b3c 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -3096,6 +3096,7 @@ static void test_CreateFontIndirect(void)
         hfont = CreateFontIndirectA(&lf);
         ok(hfont != 0, "CreateFontIndirectA failed\n");
         ret = GetObject(hfont, sizeof(getobj_lf), &getobj_lf);
+        ok(ret, "GetObject failed: %08x\n", GetLastError());
         ok(lf.lfItalic == getobj_lf.lfItalic, "lfItalic: expect %02x got %02x\n", lf.lfItalic, getobj_lf.lfItalic);
         ok(lf.lfWeight == getobj_lf.lfWeight ||
            broken((SHORT)lf.lfWeight == getobj_lf.lfWeight), /* win9x */


More information about the wine-patches mailing list