gdi32/tests: use ret in test_CreateFontIndirect()
Dmitry Timoshkov
dmitry at codeweavers.com
Sat May 22 02:13:24 CDT 2010
Austin English <austinenglish at gmail.com> wrote:
> @@ -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());
Printing last error without prior setting it to 0xdeadfeef won't really
help. Also errors returned by GetLastError() are defined in decimal in
winerror.h.
--
Dmitry.
More information about the wine-devel
mailing list