mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 00:47:17 +00:00
gdi32/tests: Fix the GetObject last error check for most Windows versions.
This commit is contained in:
parent
9188bd647b
commit
abafd9f1c7
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue