From 5468f40ab8b720c3ff7de3ad5c15d9d5f7a001cd Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 2 Sep 2008 22:50:14 -0500 Subject: [PATCH] gdi32: Fix a failing test in win9x. --- dlls/gdi32/tests/palette.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/gdi32/tests/palette.c b/dlls/gdi32/tests/palette.c index c9455cab659..851c3213e14 100644 --- a/dlls/gdi32/tests/palette.c +++ b/dlls/gdi32/tests/palette.c @@ -110,7 +110,9 @@ static void test_DIB_PAL_COLORS(void) { SetPixel( memhdc, 0, 0, setColor ); chkColor = RGB( logpalettedata[3].peRed, logpalettedata[3].peGreen, logpalettedata[3].peBlue ); getColor = GetPixel( memhdc, 0, 0 ); - ok( getColor == chkColor, "getColor=%08X\n", (UINT)getColor ); + ok( getColor == chkColor || + broken(getColor == 0), /* win9x */ + "getColor=%08X\n", (UINT)getColor ); SelectPalette( memhdc, hpalOld, FALSE ); DeleteObject( hpal );