Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tayshawnna Jackson
wine
Commits
b4062882
Commit
b4062882
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
user32/tests: Cope with last error behavior on Vista.
parent
a3dd2967
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/user32/tests/cursoricon.c
+6
-6
6 additions, 6 deletions
dlls/user32/tests/cursoricon.c
with
6 additions
and
6 deletions
dlls/user32/tests/cursoricon.c
+
6
−
6
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment