gdiplus/tests: Fix test on Win7.
This commit is contained in:
parent
1134f77d5f
commit
3b336da990
|
@ -43,7 +43,7 @@ static void test_startup(void)
|
||||||
expect(Ok, status);
|
expect(Ok, status);
|
||||||
GdiplusShutdown(gdiplusToken);
|
GdiplusShutdown(gdiplusToken);
|
||||||
|
|
||||||
gdiplusStartupInput.GdiplusVersion = 2;
|
gdiplusStartupInput.GdiplusVersion = 42;
|
||||||
|
|
||||||
status = GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
|
status = GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
|
||||||
expect(UnsupportedGdiplusVersion, status);
|
expect(UnsupportedGdiplusVersion, status);
|
||||||
|
@ -219,7 +219,8 @@ static void test_dasharray(void)
|
||||||
/* Try to set with count = 0. */
|
/* Try to set with count = 0. */
|
||||||
GdipSetPenDashStyle(pen, DashStyleDot);
|
GdipSetPenDashStyle(pen, DashStyleDot);
|
||||||
status = GdipSetPenDashArray(pen, dashes, 0);
|
status = GdipSetPenDashArray(pen, dashes, 0);
|
||||||
expect(OutOfMemory, status);
|
ok(status == OutOfMemory || status == InvalidParameter,
|
||||||
|
"Expected OutOfMemory or InvalidParameter, got %.8x\n", status);
|
||||||
GdipGetPenDashStyle(pen, &style);
|
GdipGetPenDashStyle(pen, &style);
|
||||||
expect(DashStyleDot, style);
|
expect(DashStyleDot, style);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue