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
60f5712b
Commit
60f5712b
authored
Dec 28, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Test some return values (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d108ff79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
imagelist.c
dlls/comctl32/tests/imagelist.c
+6
-2
No files found.
dlls/comctl32/tests/imagelist.c
View file @
60f5712b
...
...
@@ -836,8 +836,11 @@ static const IStreamVtbl Test_Stream_Vtbl =
static
void
init_memstream
(
struct
memstream
*
stream
)
{
HRESULT
hr
;
stream
->
IStream_iface
.
lpVtbl
=
&
Test_Stream_Vtbl
;
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
->
stream
);
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
->
stream
);
ok
(
hr
==
S_OK
,
"Failed to create a stream, hr %#x.
\n
"
,
hr
);
}
static
void
cleanup_memstream
(
struct
memstream
*
stream
)
...
...
@@ -995,7 +998,8 @@ static void check_iml_data(HIMAGELIST himl, INT cx, INT cy, INT cur, INT max, IN
hr
=
GetHGlobalFromStream
(
stream
.
stream
,
&
hglobal
);
ok
(
hr
==
S_OK
,
"%s: Failed to get hglobal, %#x
\n
"
,
comment
,
hr
);
IStream_Stat
(
stream
.
stream
,
&
stat
,
STATFLAG_NONAME
);
hr
=
IStream_Stat
(
stream
.
stream
,
&
stat
,
STATFLAG_NONAME
);
ok
(
hr
==
S_OK
,
"Stat() failed, hr %#x.
\n
"
,
hr
);
data
=
GlobalLock
(
hglobal
);
...
...
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