Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4afb1c54
Commit
4afb1c54
authored
Nov 20, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix the cursor tests on Win9x.
parent
43a70a68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
cursoricon.c
dlls/user32/tests/cursoricon.c
+20
-19
No files found.
dlls/user32/tests/cursoricon.c
View file @
4afb1c54
...
...
@@ -76,7 +76,7 @@ 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
"
);
todo_wine
ok
(
!
ret
||
broken
(
ret
)
/* win9x */
,
"DestroyCursor on the active cursor succeeded.
\n
"
);
ok
(
error
==
ERROR_DESTROY_OBJECT_OF_OTHER_THREAD
||
error
==
0xdeadbeef
,
/* vista */
"Last error: %u
\n
"
,
error
);
...
...
@@ -983,25 +983,26 @@ static void test_DestroyCursor(void)
SetLastError
(
0xdeadbeef
);
ret
=
DestroyCursor
(
cursor
);
ok
(
!
ret
,
"DestroyCursor on the active cursor succeeded
\n
"
);
ok
(
!
ret
||
broken
(
ret
)
/* succeeds on win9x */
,
"DestroyCursor on the active cursor succeeded
\n
"
);
error
=
GetLastError
();
ok
(
error
==
0xdeadbeef
,
"Last error: %u
\n
"
,
error
);
cursor2
=
GetCursor
();
ok
(
cursor2
==
cursor
,
"Active was set to %p when trying to destroy it
\n
"
,
cursor2
);
SetCursor
(
NULL
);
/* Trying to destroy the cursor properly fails now with
* ERROR_INVALID_CURSOR_HANDLE. This happens because we called
* DestroyCursor() 2+ times after calling SetCursor(). The calls to
* GetCursor() and SetCursor(NULL) in between make no difference. */
ret
=
DestroyCursor
(
cursor
);
todo_wine
{
ok
(
!
ret
,
"DestroyCursor succeeded.
\n
"
);
error
=
GetLastError
();
ok
(
error
==
ERROR_INVALID_CURSOR_HANDLE
||
error
==
0xdeadbeef
,
/* vista */
"Last error: 0x%08x
\n
"
,
error
);
if
(
!
ret
)
{
cursor2
=
GetCursor
();
ok
(
cursor2
==
cursor
,
"Active was set to %p when trying to destroy it
\n
"
,
cursor2
);
SetCursor
(
NULL
);
/* Trying to destroy the cursor properly fails now with
* ERROR_INVALID_CURSOR_HANDLE. This happens because we called
* DestroyCursor() 2+ times after calling SetCursor(). The calls to
* GetCursor() and SetCursor(NULL) in between make no difference. */
ret
=
DestroyCursor
(
cursor
);
todo_wine
{
ok
(
!
ret
,
"DestroyCursor succeeded.
\n
"
);
error
=
GetLastError
();
ok
(
error
==
ERROR_INVALID_CURSOR_HANDLE
||
error
==
0xdeadbeef
,
/* vista */
"Last error: 0x%08x
\n
"
,
error
);
}
}
DeleteObject
(
cursorInfo
.
hbmMask
);
...
...
@@ -1012,7 +1013,7 @@ static void test_DestroyCursor(void)
SetLastError
(
0xdeadbeef
);
ret
=
DestroyCursor
(
cursor
);
ok
(
ret
,
"DestroyCursor on the active cursor failed.
\n
"
);
ok
(
ret
||
broken
(
!
ret
)
/* fails on win9x */
,
"DestroyCursor on the active cursor failed.
\n
"
);
error
=
GetLastError
();
ok
(
error
==
0xdeadbeef
,
"Last error: 0x%08x
\n
"
,
error
);
...
...
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