Dan Kegel : gdi32/tests: Fix false pass in warn+heap case.
Alexandre Julliard
julliard at winehq.org
Wed Oct 24 11:04:41 CDT 2007
Module: wine
Branch: master
Commit: f4b0cf5f5b5b35beb40ec1cc4a4e6669729a38be
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f4b0cf5f5b5b35beb40ec1cc4a4e6669729a38be
Author: Dan Kegel <dank06 at kegel.com>
Date: Tue Oct 23 12:11:22 2007 -0700
gdi32/tests: Fix false pass in warn+heap case.
---
dlls/gdi32/tests/font.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 33dd3f8..41ead71 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -1496,7 +1496,8 @@ static void test_text_metrics(const LOGFONTA *lf)
ok(hfont2 != 0, "CreateFontIndirect error %u\n", GetLastError());
hfont_prev = SelectObject(hdc, hfont2);
- memset(&gm1, 0xaa, sizeof(gm1));
+ /* filling with 0xaa causes false pass under WINEDEBUG=warn+heap */
+ memset(&gm1, 0xab, sizeof(gm1));
SetLastError(0xdeadbeef);
ret = GetGlyphOutlineA(hdc, 'x', GGO_METRICS, &gm1, 0, NULL, &mat2);
ok(ret != GDI_ERROR, "GetGlyphOutline error 0x%x\n", GetLastError());
More information about the wine-cvs
mailing list