gdi32/tests: Fix test_widenpath to succeed on Win98.

This commit is contained in:
Misha Koshelev 2007-06-21 23:39:20 -05:00 committed by Alexandre Julliard
parent 920b050a8b
commit 102a0a3b79
1 changed files with 3 additions and 4 deletions

View File

@ -38,7 +38,6 @@ static void test_widenpath(void)
HPEN oldPen;
POINT pnt[6];
INT nSize, ret;
DWORD error;
/* Create a pen to be used in WidenPath */
greenPen = CreatePen(PS_SOLID, 10, RGB(0,0,0));
@ -73,12 +72,12 @@ static void test_widenpath(void)
AbortPath(hdc);
/* Test WidenPath with an open path */
/* Test WidenPath with an open path (last error only set on Win2k and later) */
SetLastError(0xdeadbeef);
BeginPath(hdc);
ret = WidenPath(hdc);
error = GetLastError();
ok(ret == FALSE && GetLastError() == ERROR_CAN_NOT_COMPLETE, "WidenPath fails while widening an open path. Return value is %d, should be %d. Error is %08x, should be %08x\n", ret, FALSE, GetLastError(), ERROR_CAN_NOT_COMPLETE);
ok(ret == FALSE && (GetLastError() == ERROR_CAN_NOT_COMPLETE || GetLastError() == 0xdeadbeef),
"WidenPath fails while widening an open path. Return value is %d, should be %d. Error is %u\n", ret, FALSE, GetLastError());
AbortPath(hdc);