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
912d7474
Commit
912d7474
authored
Apr 29, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
May 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Added PrivateExtractIcons test.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
03b93eee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
cursoricon.c
dlls/user32/tests/cursoricon.c
+20
-0
No files found.
dlls/user32/tests/cursoricon.c
View file @
912d7474
...
...
@@ -2517,6 +2517,25 @@ static void test_DestroyCursor(void)
ok
(
cursor2
!=
cursor
,
"cursor == %p, cursor2 == %p
\n
"
,
cursor
,
cursor2
);
}
static
void
test_PrivateExtractIcons
(
void
)
{
HICON
icon
;
UINT
ret
;
static
const
test_icon_entries_t
icon_desc
[]
=
{{
0
,
0
,
TRUE
},
{
16
,
16
,
TRUE
},
{
32
,
32
},
{
64
,
64
,
TRUE
}};
create_ico_file
(
"extract.ico"
,
icon_desc
,
sizeof
(
icon_desc
)
/
sizeof
(
*
icon_desc
));
ret
=
PrivateExtractIconsA
(
"extract.ico"
,
0
,
32
,
32
,
&
icon
,
NULL
,
1
,
0
);
ok
(
ret
==
1
,
"PrivateExtractIconsA returned %u
\n
"
,
ret
);
ok
(
icon
!=
NULL
,
"icon == NULL
\n
"
);
test_icon_info
(
icon
,
32
,
32
,
32
,
32
);
DestroyIcon
(
icon
);
DeleteFileA
(
"extract.ico"
);
}
static
void
test_monochrome_icon
(
void
)
{
HANDLE
handle
;
...
...
@@ -2670,6 +2689,7 @@ START_TEST(cursoricon)
test_SetCursor
();
test_ShowCursor
();
test_DestroyCursor
();
test_PrivateExtractIcons
();
test_monochrome_icon
();
do_parent
();
test_child_process
();
...
...
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