Commit 0b14f38d authored by Jakob Eriksson's avatar Jakob Eriksson Committed by Alexandre Julliard

Add return value to GetObject error message.

parent 08aa87fb
...@@ -33,6 +33,7 @@ static void test_logfont(void) ...@@ -33,6 +33,7 @@ static void test_logfont(void)
{ {
LOGFONTA lf, lfout; LOGFONTA lf, lfout;
HFONT hfont; HFONT hfont;
int ret;
memset(&lf, 0, sizeof lf); memset(&lf, 0, sizeof lf);
...@@ -47,8 +48,9 @@ static void test_logfont(void) ...@@ -47,8 +48,9 @@ static void test_logfont(void)
hfont = CreateFontIndirectA(&lf); hfont = CreateFontIndirectA(&lf);
ok(hfont != 0, "CreateFontIndirect failed\n"); ok(hfont != 0, "CreateFontIndirect failed\n");
ok(GetObjectA(hfont, sizeof(lfout), &lfout) == sizeof(lfout), ret = GetObjectA(hfont, sizeof(lfout), &lfout);
"GetObject returned wrong size\n"); 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(!memcmp(&lfout, &lf, FIELD_OFFSET(LOGFONTA, lfFaceName)), "fonts don't match\n");
ok(!lstrcmpA(lfout.lfFaceName, lf.lfFaceName), ok(!lstrcmpA(lfout.lfFaceName, lf.lfFaceName),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment