gdiplus/tests: Fix test on Win7.

This commit is contained in:
Ge van Geldorp 2009-09-02 12:16:54 +02:00 committed by Alexandre Julliard
parent 1134f77d5f
commit 3b336da990
1 changed files with 3 additions and 2 deletions

View File

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