Commit abafd9f1 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32/tests: Fix the GetObject last error check for most Windows versions.

parent 9188bd64
......@@ -85,7 +85,7 @@ static void test_gdi_objects(void)
hp = SelectObject(hdc, GetStockObject(BLACK_PEN));
SetLastError(0);
i = GetObjectA(hp, (INT_PTR)buff, (LPVOID)sizeof(buff));
ok (!i && GetLastError() == ERROR_NOACCESS,
ok (!i && (GetLastError() == 0 || GetLastError() == ERROR_NOACCESS),
"GetObject(invalid buff), expected 0, ERROR_NOACCESS, got %d, %u\n",
i, GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment