[PATCH 4/4] Fix some test failures on older gdiplus

Paul Vriens Paul.Vriens.Wine at gmail.com
Wed Dec 16 02:48:47 CST 2009


---
 dlls/gdiplus/tests/image.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 2b08ef8..486a679 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -1055,7 +1055,9 @@ static void test_palette(void)
     palette->Count = 257;
 
     stat = GdipSetImagePalette((GpImage*)bitmap, palette);
-    expect(InvalidParameter, stat);
+    ok(stat == InvalidParameter ||
+       broken(stat == Ok), /* Old gdiplus behavior */
+       "Expected %.8x, got %.8x\n", InvalidParameter, stat);
 
     GdipDisposeImage((GpImage*)bitmap);
 }
-- 
1.6.2.5


--------------050908060901020505010107--



More information about the wine-patches mailing list