gdiplus/tests: Fix a test failure on Win98/WinMe.
authorPaul Vriens <Paul.Vriens.Wine@gmail.com>
Tue, 16 Mar 2010 10:00:59 +0000 (11:00 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 16 Mar 2010 16:03:43 +0000 (17:03 +0100)
dlls/gdiplus/tests/graphics.c

index b2dc9b299fb9221cbaa30a550f2f76ad7a5bced5..9dffd52eec2c9a4020d13c33f739710933f7d6bc 100644 (file)
@@ -2415,7 +2415,10 @@ static void test_GdipGetNearestColor(void)
     expect(Ok, status);
     status = GdipGetNearestColor(graphics, &color);
     expect(Ok, status);
-    todo_wine expect(0xffa8b8e8, color);
+    todo_wine
+    ok(color == 0xffa8b8e8 ||
+       broken(color == 0xffa0b8e0), /* Win98/WinMe */
+       "Expected ffa8b8e8, got %.8x\n", color);
     GdipDeleteGraphics(graphics);
     GdipDisposeImage((GpImage*)bitmap);