Module: wine Branch: master Commit: 3fa05ae6a7c08f9534badfeffbe02db9e00ab47a URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fa05ae6a7c08f9534badfeffb...
Author: Huw Davies huw@codeweavers.com Date: Mon Feb 16 14:07:29 2009 +0000
gdi32/tests: Only test the lowest byte of GdiRealizationInfo flags so that the test passes on Vista.
---
dlls/gdi32/tests/font.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index cc80265..cf6d3f9 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -2580,7 +2580,7 @@ static void test_GdiRealizationInfo(void) memset(info, 0xcc, sizeof(info)); r = pGdiRealizationInfo(hdc, info); ok(r != 0, "ret 0\n"); - ok(info[0] == 1, "info[0] = %x for the system font\n", info[0]); + ok((info[0] & 0xf) == 1, "info[0] = %x for the system font\n", info[0]); ok(info[3] == 0xcccccccc, "structure longer than 3 dwords\n");
if (!is_truetype_font_installed("Arial")) @@ -2599,7 +2599,7 @@ static void test_GdiRealizationInfo(void) memset(info, 0xcc, sizeof(info)); r = pGdiRealizationInfo(hdc, info); ok(r != 0, "ret 0\n"); - ok(info[0] == 3, "info[0] = %x for arial\n", info[0]); + ok((info[0] & 0xf) == 3, "info[0] = %x for arial\n", info[0]); ok(info[3] == 0xcccccccc, "structure longer than 3 dwords\n");
DeleteObject(SelectObject(hdc, hfont_old));