gdi32/tests: Fix a flood of failures on Windows XP SP1 and 2003 pre-SP1.

Francois Gouget fgouget at free.fr
Fri Dec 20 12:05:29 CST 2013


---

For some reason both return 0xaada instead of 0x5555. This results in a 
flood of about 58000 failures which causes the report file to grow way 
too big and thus be rejected by test.winehq.org.


 dlls/gdi32/tests/bitmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c
index f8e71b4..aa2be70 100644
--- a/dlls/gdi32/tests/bitmap.c
+++ b/dlls/gdi32/tests/bitmap.c
@@ -1611,7 +1611,7 @@ static void test_bitmap_colors( HDC hdc, COLORREF fg, COLORREF bg, int r, int g,
     old_brush = SelectObject( hdc, CreatePatternBrush( bitmap ));
     PatBlt( hdc, 0, 0, 16, 16, PATCOPY );
     GetBitmapBits( GetCurrentObject( hdc, OBJ_BITMAP ), sizeof(bits), bits );
-    ok( bits[0] == 0x5555,
+    ok( bits[0] == 0x5555 || broken(bits[0] == 0xaada) /* XP SP1 & 2003 SP0 */,
         "wrong bits %04x for %02x,%02x,%02x fg %06x bg %06x\n", bits[0], r, g, b, fg, bg );
     DeleteObject( SelectObject( hdc, old_brush ));
 
-- 
1.8.5.1



More information about the wine-patches mailing list