http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9188bd6
)
gdi32/tests: Fix the GetObject last error check for most Windows versions.
author
Alexandre Julliard
<julliard@winehq.org>
Mon, 23 Aug 2010 09:11:16 +0000
(11:11 +0200)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 23 Aug 2010 09:11:16 +0000
(11:11 +0200)
dlls/gdi32/tests/gdiobj.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/gdi32/tests/gdiobj.c
b/dlls/gdi32/tests/gdiobj.c
index 7302134fa4a97fa5218a7fabb288fe475a1fba6c..636707161fb404c59857627c1fba0dff9122d074 100644
(file)
--- a/
dlls/gdi32/tests/gdiobj.c
+++ b/
dlls/gdi32/tests/gdiobj.c
@@
-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());