Austin English : gdi32/tests: Use ret in test_CreateFontIndirect().

Alexandre Julliard julliard at winehq.org
Mon May 24 11:30:50 CDT 2010


Module: wine
Branch: master
Commit: 00ddfc804aaf11f5e9f3120fc998fedd0a902e83
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=00ddfc804aaf11f5e9f3120fc998fedd0a902e83

Author: Austin English <austinenglish at gmail.com>
Date:   Sat May 22 03:35:07 2010 -0500

gdi32/tests: Use ret in test_CreateFontIndirect().

---

 dlls/gdi32/tests/font.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 72cf9be..6ef98c8 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -3095,7 +3095,9 @@ static void test_CreateFontIndirect(void)
         lstrcpyA(lf.lfFaceName, TestName[i]);
         hfont = CreateFontIndirectA(&lf);
         ok(hfont != 0, "CreateFontIndirectA failed\n");
+        SetLastError(0xdeadbeef);
         ret = GetObject(hfont, sizeof(getobj_lf), &getobj_lf);
+        ok(ret, "GetObject failed: %d\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-cvs mailing list