gdi32/tests: Win98 and WinMe actually do set error codes.

This commit is contained in:
Huw Davies 2009-02-16 22:37:25 +00:00 committed by Alexandre Julliard
parent c404d00b3d
commit 7cc7ad5ec4
1 changed files with 3 additions and 1 deletions

View File

@ -2767,7 +2767,9 @@ static void test_GetGlyphOutline(void)
SetLastError(0xdeadbeef);
ret = GetGlyphOutlineA(hdc, 'A', GGO_METRICS, &gm, 0, NULL, NULL);
ok(ret == GDI_ERROR, "GetGlyphOutlineA should fail\n");
ok(GetLastError() == 0xdeadbeef, "expected 0xdeadbeef, got %u\n", GetLastError());
ok(GetLastError() == 0xdeadbeef ||
GetLastError() == ERROR_INVALID_PARAMETER, /* win98, winMe */
"expected 0xdeadbeef, got %u\n", GetLastError());
memset(&gm, 0, sizeof(gm));
SetLastError(0xdeadbeef);