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
d296c185
Commit
d296c185
authored
Dec 09, 2007
by
Andrew Riedi
Committed by
Alexandre Julliard
Dec 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Improve test_DestroyCursor().
parent
573fcad0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
cursoricon.c
dlls/user32/tests/cursoricon.c
+26
-0
No files found.
dlls/user32/tests/cursoricon.c
View file @
d296c185
...
...
@@ -3,6 +3,7 @@
*
* Copyright 2006 Michael Kaufmann
* Copyright 2007 Dmitry Timoshkov
* Copyright 2007 Andrew Riedi
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -424,6 +425,31 @@ static void test_DestroyCursor(void)
DeleteObject
(
cursorInfo
.
hbmMask
);
DeleteObject
(
cursorInfo
.
hbmColor
);
/* Try testing DestroyCursor() now using LoadCursor() cursors. */
cursor
=
LoadCursor
(
NULL
,
IDC_ARROW
);
SetLastError
(
0xdeadbeef
);
ret
=
DestroyCursor
(
cursor
);
ok
(
ret
,
"DestroyCursor on the active cursor failed.
\n
"
);
error
=
GetLastError
();
ok
(
error
==
0xdeadbeef
,
"Last error: 0x%08x
\n
"
,
error
);
/* Try setting the cursor to a destroyed OEM cursor. */
SetLastError
(
0xdeadbeef
);
SetCursor
(
cursor
);
error
=
GetLastError
();
todo_wine
{
ok
(
error
==
0xdeadbeef
,
"Last error: 0x%08x
\n
"
,
error
);
}
/* Check if LoadCursor() returns the same handle with the same icon. */
cursor2
=
LoadCursor
(
NULL
,
IDC_ARROW
);
ok
(
cursor2
==
cursor
,
"cursor == %p, cursor2 == %p
\n
"
,
cursor
,
cursor2
);
/* Check if LoadCursor() returns the same handle with a different icon. */
cursor2
=
LoadCursor
(
NULL
,
IDC_WAIT
);
ok
(
cursor2
!=
cursor
,
"cursor == %p, cursor2 == %p
\n
"
,
cursor
,
cursor2
);
}
START_TEST
(
cursoricon
)
...
...
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