gdi32/tests: Use ret in test_CreateFontIndirect().

oldstable
Austin English 2010-05-22 03:35:07 -05:00 committed by Alexandre Julliard
parent 5396713c2b
commit 00ddfc804a
1 changed files with 2 additions and 0 deletions

View File

@ -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 */