gdiplus/tests: Fix some test failures on older gdiplus versions.
authorPaul Vriens <Paul.Vriens.Wine@gmail.com>
Mon, 28 Sep 2009 10:03:31 +0000 (12:03 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 28 Sep 2009 10:39:32 +0000 (12:39 +0200)
dlls/gdiplus/tests/image.c

index e9731868ab3919ce8abe34827498b9c37ecd56d6..cd761bdf5cc88948aedcb02556fec83bbe71f871 100644 (file)
@@ -828,10 +828,14 @@ static void test_getsetpixel(void)
     expect(InvalidParameter, stat);
 
     stat = GdipBitmapGetPixel(bitmap, 1, -1, &color);
-    expect(InvalidParameter, stat);
+    ok(stat == InvalidParameter ||
+       broken(stat == Ok), /* Older gdiplus */
+       "Expected InvalidParameter, got %.8x\n", stat);
 
     stat = GdipBitmapSetPixel(bitmap, 1, -1, 0);
-    expect(InvalidParameter, stat);
+    ok(stat == InvalidParameter ||
+       broken(stat == Ok), /* Older gdiplus */
+       "Expected InvalidParameter, got %.8x\n", stat);
 
     stat = GdipBitmapGetPixel(bitmap, 2, 1, &color);
     expect(InvalidParameter, stat);