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
888ffb11
Commit
888ffb11
authored
Jul 30, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Test GetIconInfo on other process cursor.
parent
68ce000d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
cursoricon.c
dlls/user32/tests/cursoricon.c
+16
-4
No files found.
dlls/user32/tests/cursoricon.c
View file @
888ffb11
...
...
@@ -308,21 +308,33 @@ static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
static
LRESULT
CALLBACK
callback_child
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
BOOL
ret
;
DWORD
error
;
switch
(
msg
)
{
/* Destroy the cursor. */
case
WM_USER
+
1
:
{
HCURSOR
cursor
=
(
HCURSOR
)
lParam
;
ICONINFO
info
;
BOOL
ret
;
DWORD
error
;
memset
(
&
info
,
0
,
sizeof
(
info
));
ret
=
GetIconInfo
(
cursor
,
&
info
);
todo_wine
ok
(
ret
,
"GetIconInfoEx failed with error %u
\n
"
,
GetLastError
());
todo_wine
ok
(
info
.
hbmColor
!=
NULL
,
"info.hmbColor was not set
\n
"
);
todo_wine
ok
(
info
.
hbmMask
!=
NULL
,
"info.hmbColor was not set
\n
"
);
DeleteObject
(
info
.
hbmColor
);
DeleteObject
(
info
.
hbmMask
);
SetLastError
(
0xdeadbeef
);
ret
=
DestroyCursor
(
(
HCURSOR
)
lParam
);
ret
=
DestroyCursor
(
cursor
);
error
=
GetLastError
();
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
);
return
TRUE
;
}
case
WM_DESTROY
:
PostQuitMessage
(
0
);
return
0
;
...
...
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