Module: wine Branch: master Commit: 5468f40ab8b720c3ff7de3ad5c15d9d5f7a001cd URL: http://source.winehq.org/git/wine.git/?a=commit;h=5468f40ab8b720c3ff7de3ad5c...
Author: James Hawkins jhawkins@codeweavers.com Date: Tue Sep 2 22:50:14 2008 -0500
gdi32: Fix a failing test in win9x.
---
dlls/gdi32/tests/palette.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/palette.c b/dlls/gdi32/tests/palette.c index c9455ca..851c321 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 );