gdiplus/tests: Fix some test failures on older gdiplus versions.

This commit is contained in:
Paul Vriens 2009-09-28 12:03:31 +02:00 committed by Alexandre Julliard
parent f9786d7eda
commit a126f0caf2
1 changed files with 6 additions and 2 deletions

View 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);