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
6e7846e3
Commit
6e7846e3
authored
Oct 11, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Return the module and resource name in GetIconInfoEx.
parent
751a09e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
cursoricon.c
dlls/user32/cursoricon.c
+9
-3
cursoricon.c
dlls/user32/tests/cursoricon.c
+6
-6
No files found.
dlls/user32/cursoricon.c
View file @
6e7846e3
...
...
@@ -1911,9 +1911,15 @@ BOOL WINAPI GetIconInfoExW( HICON icon, ICONINFOEXW *info )
info
->
yHotspot
=
ptr
->
hotspot
.
y
;
info
->
hbmColor
=
copy_bitmap
(
ptr
->
frames
[
0
].
color
);
info
->
hbmMask
=
copy_bitmap
(
ptr
->
frames
[
0
].
mask
);
info
->
wResID
=
0
;
/* FIXME */
info
->
szModName
[
0
]
=
0
;
/* FIXME */
info
->
szResName
[
0
]
=
0
;
/* FIXME */
info
->
wResID
=
0
;
info
->
szModName
[
0
]
=
0
;
info
->
szResName
[
0
]
=
0
;
if
(
ptr
->
module
)
{
GetModuleFileNameW
(
ptr
->
module
,
info
->
szModName
,
MAX_PATH
);
if
(
IS_INTRESOURCE
(
ptr
->
resname
))
info
->
wResID
=
LOWORD
(
ptr
->
resname
);
else
lstrcpynW
(
info
->
szResName
,
ptr
->
resname
,
MAX_PATH
);
}
release_icon_ptr
(
icon
,
ptr
);
return
TRUE
;
}
...
...
dlls/user32/tests/cursoricon.c
View file @
6e7846e3
...
...
@@ -956,20 +956,20 @@ static void test_LoadImage(void)
infoexA
.
cbSize
=
sizeof
(
infoexA
);
ret
=
pGetIconInfoExA
(
handle
,
&
infoexA
);
ok
(
ret
,
"GetIconInfoEx failed err %d
\n
"
,
GetLastError
()
);
todo_wine
ok
(
infoexA
.
wResID
==
(
UINT_PTR
)
IDI_HAND
,
"GetIconInfoEx wrong resid %x
\n
"
,
infoexA
.
wResID
);
ok
(
infoexA
.
wResID
==
(
UINT_PTR
)
IDI_HAND
,
"GetIconInfoEx wrong resid %x
\n
"
,
infoexA
.
wResID
);
/* the A version is broken on 64-bit, it truncates the string after the first char */
if
(
is_win64
&&
infoexA
.
szModName
[
0
]
&&
infoexA
.
szModName
[
1
]
==
0
)
trace
(
"GetIconInfoExA broken on Win64
\n
"
);
else
todo_wine
ok
(
GetModuleHandleA
(
infoexA
.
szModName
)
==
GetModuleHandleA
(
"user32.dll"
),
"GetIconInfoEx wrong module %s
\n
"
,
infoexA
.
szModName
);
ok
(
GetModuleHandleA
(
infoexA
.
szModName
)
==
GetModuleHandleA
(
"user32.dll"
),
"GetIconInfoEx wrong module %s
\n
"
,
infoexA
.
szModName
);
ok
(
infoexA
.
szResName
[
0
]
==
0
,
"GetIconInfoEx wrong name %s
\n
"
,
infoexA
.
szResName
);
infoexW
.
cbSize
=
sizeof
(
infoexW
);
ret
=
pGetIconInfoExW
(
handle
,
&
infoexW
);
ok
(
ret
,
"GetIconInfoEx failed err %d
\n
"
,
GetLastError
()
);
todo_wine
ok
(
infoexW
.
wResID
==
(
UINT_PTR
)
IDI_HAND
,
"GetIconInfoEx wrong resid %x
\n
"
,
infoexW
.
wResID
);
todo_wine
ok
(
GetModuleHandleW
(
infoexW
.
szModName
)
==
GetModuleHandleA
(
"user32.dll"
),
"GetIconInfoEx wrong module %s
\n
"
,
wine_dbgstr_w
(
infoexW
.
szModName
)
);
ok
(
infoexW
.
wResID
==
(
UINT_PTR
)
IDI_HAND
,
"GetIconInfoEx wrong resid %x
\n
"
,
infoexW
.
wResID
);
ok
(
GetModuleHandleW
(
infoexW
.
szModName
)
==
GetModuleHandleA
(
"user32.dll"
),
"GetIconInfoEx wrong module %s
\n
"
,
wine_dbgstr_w
(
infoexW
.
szModName
)
);
ok
(
infoexW
.
szResName
[
0
]
==
0
,
"GetIconInfoEx wrong name %s
\n
"
,
wine_dbgstr_w
(
infoexW
.
szResName
)
);
}
SetLastError
(
0xdeadbeef
);
...
...
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