Jeremy White : gdi32/tests: Make the comparison of the enumerated and returned logfont structures actually work .

Alexandre Julliard julliard at winehq.org
Mon Oct 13 06:39:21 CDT 2008


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

Author: Jeremy White <jwhite at winehq.org>
Date:   Sun Oct 12 15:36:14 2008 -0500

gdi32/tests: Make the comparison of the enumerated and returned logfont structures actually work.

---

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

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 06ef26d..48a8fe5 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -106,7 +106,7 @@ static void check_font(const char* test, const LOGFONTA* lf, HFONT hfont)
         minlen++;
     minlen += FIELD_OFFSET(LOGFONTA, lfFaceName) + 1;
     ok(ret == sizeof(LOGFONTA) || ret == minlen, "%s: GetObject returned %d\n", test, ret);
-    ok(!memcmp(&lf, &lf, FIELD_OFFSET(LOGFONTA, lfFaceName)), "%s: fonts don't match\n", test);
+    ok(!memcmp(lf, &getobj_lf, FIELD_OFFSET(LOGFONTA, lfFaceName)), "%s: fonts don't match\n", test);
     ok(!lstrcmpA(lf->lfFaceName, getobj_lf.lfFaceName),
        "%s: font names don't match: %s != %s\n", test, lf->lfFaceName, getobj_lf.lfFaceName);
 }




More information about the wine-cvs mailing list