gdiplus/tests: Fix some test failures on older gdiplus versions.
This commit is contained in:
parent
f9786d7eda
commit
a126f0caf2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue