Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b4062882
Commit
b4062882
authored
Sep 17, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Cope with last error behavior on Vista.
parent
a3dd2967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cursoricon.c
dlls/user32/tests/cursoricon.c
+6
-6
No files found.
dlls/user32/tests/cursoricon.c
View file @
b4062882
...
...
@@ -76,11 +76,10 @@ static LRESULT CALLBACK callback_child(HWND hwnd, UINT msg, WPARAM wParam, LPARA
SetLastError
(
0xdeadbeef
);
ret
=
DestroyCursor
((
HCURSOR
)
lParam
);
error
=
GetLastError
();
todo_wine
{
ok
(
!
ret
,
"DestroyCursor on the active cursor succeeded.
\n
"
);
ok
(
error
==
ERROR_DESTROY_OBJECT_OF_OTHER_THREAD
,
todo_wine
ok
(
!
ret
,
"DestroyCursor on the active cursor succeeded.
\n
"
);
ok
(
error
==
ERROR_DESTROY_OBJECT_OF_OTHER_THREAD
||
error
==
0xdeadbeef
,
/* vista */
"Last error: %u
\n
"
,
error
);
}
return
TRUE
;
case
WM_DESTROY
:
PostQuitMessage
(
0
);
...
...
@@ -132,7 +131,7 @@ static void do_child(void)
PostMessage
(
parent
,
PROC_INIT
,
(
WPARAM
)
child
,
0
);
/* Receive messages. */
while
((
ret
=
GetMessage
(
&
msg
,
child
,
0
,
0
)))
while
((
ret
=
GetMessage
(
&
msg
,
0
,
0
,
0
)))
{
ok
(
ret
!=
-
1
,
"GetMessage failed. Error: %u
\n
"
,
GetLastError
());
TranslateMessage
(
&
msg
);
...
...
@@ -990,7 +989,8 @@ static void test_DestroyCursor(void)
todo_wine
{
ok
(
!
ret
,
"DestroyCursor succeeded.
\n
"
);
error
=
GetLastError
();
ok
(
error
==
ERROR_INVALID_CURSOR_HANDLE
,
"Last error: 0x%08x
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_CURSOR_HANDLE
||
error
==
0xdeadbeef
,
/* vista */
"Last error: 0x%08x
\n
"
,
error
);
}
DeleteObject
(
cursorInfo
.
hbmMask
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment