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
9072dbd2
Commit
9072dbd2
authored
Apr 21, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Apr 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Add a test for the size of the icon returned by ExtractIcons().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c7760f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Makefile.in
dlls/shell32/tests/Makefile.in
+1
-1
shelllink.c
dlls/shell32/tests/shelllink.c
+6
-0
No files found.
dlls/shell32/tests/Makefile.in
View file @
9072dbd2
TESTDLL
=
shell32.dll
IMPORTS
=
shell32 ole32 oleaut32 user32 advapi32
IMPORTS
=
shell32 ole32 oleaut32 user32
gdi32
advapi32
C_SRCS
=
\
appbar.c
\
...
...
dlls/shell32/tests/shelllink.c
View file @
9072dbd2
...
...
@@ -1159,6 +1159,8 @@ static void test_ExtractIcon(void)
char
path
[
MAX_PATH
];
HANDLE
file
;
int
r
;
ICONINFO
info
;
BITMAP
bm
;
/* specified instance handle */
hicon
=
ExtractIconA
(
GetModuleHandleA
(
"shell32.dll"
),
NULL
,
0
);
...
...
@@ -1214,6 +1216,10 @@ if (0)
/* existing index */
hicon
=
ExtractIconW
(
NULL
,
shell32W
,
0
);
ok
(
hicon
!=
NULL
&&
HandleToLong
(
hicon
)
!=
-
1
,
"Got icon %p
\n
"
,
hicon
);
GetIconInfo
(
hicon
,
&
info
);
GetObjectW
(
info
.
hbmColor
,
sizeof
(
bm
),
&
bm
);
ok
(
bm
.
bmWidth
==
GetSystemMetrics
(
SM_CXICON
),
"got %d
\n
"
,
bm
.
bmWidth
);
ok
(
bm
.
bmHeight
==
GetSystemMetrics
(
SM_CYICON
),
"got %d
\n
"
,
bm
.
bmHeight
);
DestroyIcon
(
hicon
);
/* returns number of resources */
...
...
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