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

This commit is contained in:
Alexandre Julliard 2010-08-23 11:11:16 +02:00
parent 9188bd647b
commit abafd9f1c7
1 changed files with 1 additions and 1 deletions

View File

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