From 3b336da9908665be4dc712b98ba959b204d30116 Mon Sep 17 00:00:00 2001 From: Ge van Geldorp Date: Wed, 2 Sep 2009 12:16:54 +0200 Subject: [PATCH] gdiplus/tests: Fix test on Win7. --- dlls/gdiplus/tests/pen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/tests/pen.c b/dlls/gdiplus/tests/pen.c index d2f33f0f4ad..59b7cff8286 100644 --- a/dlls/gdiplus/tests/pen.c +++ b/dlls/gdiplus/tests/pen.c @@ -43,7 +43,7 @@ static void test_startup(void) expect(Ok, status); GdiplusShutdown(gdiplusToken); - gdiplusStartupInput.GdiplusVersion = 2; + gdiplusStartupInput.GdiplusVersion = 42; status = GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); expect(UnsupportedGdiplusVersion, status); @@ -219,7 +219,8 @@ static void test_dasharray(void) /* Try to set with count = 0. */ GdipSetPenDashStyle(pen, DashStyleDot); status = GdipSetPenDashArray(pen, dashes, 0); - expect(OutOfMemory, status); + ok(status == OutOfMemory || status == InvalidParameter, + "Expected OutOfMemory or InvalidParameter, got %.8x\n", status); GdipGetPenDashStyle(pen, &style); expect(DashStyleDot, style); -- 2.11.4.GIT