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
88531272
Commit
88531272
authored
Oct 13, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: IDI_APPLICATION is already an INTRESOURCE (PVS-Studio).
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a16a2707
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
misc.c
dlls/comctl32/tests/misc.c
+4
-4
No files found.
dlls/comctl32/tests/misc.c
View file @
88531272
...
...
@@ -267,7 +267,7 @@ static void test_LoadIconWithScaleDown(void)
/* invalid arguments */
icon
=
(
HICON
)
0x1234
;
hr
=
pLoadIconMetric
(
NULL
,
MAKEINTRESOURCEW
(
IDI_APPLICATION
)
,
0x100
,
&
icon
);
hr
=
pLoadIconMetric
(
NULL
,
(
LPWSTR
)
IDI_APPLICATION
,
0x100
,
&
icon
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %x
\n
"
,
hr
);
ok
(
icon
==
NULL
,
"Expected NULL, got %p
\n
"
,
icon
);
...
...
@@ -302,7 +302,7 @@ static void test_LoadIconWithScaleDown(void)
"Expected HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND), got %x
\n
"
,
hr
);
/* load icon using predefined identifier */
hr
=
pLoadIconMetric
(
NULL
,
MAKEINTRESOURCEW
(
IDI_APPLICATION
)
,
LIM_SMALL
,
&
icon
);
hr
=
pLoadIconMetric
(
NULL
,
(
LPWSTR
)
IDI_APPLICATION
,
LIM_SMALL
,
&
icon
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %x
\n
"
,
hr
);
res
=
GetIconInfo
(
icon
,
&
info
);
ok
(
res
,
"Failed to get icon info, error %u
\n
"
,
GetLastError
());
...
...
@@ -312,7 +312,7 @@ static void test_LoadIconWithScaleDown(void)
ok
(
bmp
.
bmHeight
==
GetSystemMetrics
(
SM_CYSMICON
),
"Wrong icon height %d
\n
"
,
bmp
.
bmHeight
);
DestroyIcon
(
icon
);
hr
=
pLoadIconMetric
(
NULL
,
MAKEINTRESOURCEW
(
IDI_APPLICATION
)
,
LIM_LARGE
,
&
icon
);
hr
=
pLoadIconMetric
(
NULL
,
(
LPWSTR
)
IDI_APPLICATION
,
LIM_LARGE
,
&
icon
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %x
\n
"
,
hr
);
res
=
GetIconInfo
(
icon
,
&
info
);
ok
(
res
,
"Failed to get icon info, error %u
\n
"
,
GetLastError
());
...
...
@@ -322,7 +322,7 @@ static void test_LoadIconWithScaleDown(void)
ok
(
bmp
.
bmHeight
==
GetSystemMetrics
(
SM_CYICON
),
"Wrong icon height %d
\n
"
,
bmp
.
bmHeight
);
DestroyIcon
(
icon
);
hr
=
pLoadIconWithScaleDown
(
NULL
,
MAKEINTRESOURCEW
(
IDI_APPLICATION
)
,
42
,
42
,
&
icon
);
hr
=
pLoadIconWithScaleDown
(
NULL
,
(
LPWSTR
)
IDI_APPLICATION
,
42
,
42
,
&
icon
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %x
\n
"
,
hr
);
res
=
GetIconInfo
(
icon
,
&
info
);
ok
(
res
,
"Failed to get icon info, error %u
\n
"
,
GetLastError
());
...
...
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