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
031f2ab6
Commit
031f2ab6
authored
Jan 08, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Jan 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Add missing return value checks to istream tests (Coverity).
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b2ead8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
istream.c
dlls/shlwapi/tests/istream.c
+4
-2
No files found.
dlls/shlwapi/tests/istream.c
View file @
031f2ab6
...
...
@@ -663,8 +663,10 @@ static void test_SHCreateStreamOnFileEx_CopyTo(void)
static
const
WCHAR
prefix
[]
=
{
'T'
,
'S'
,
'T'
,
0
};
GetTempPathW
(
MAX_PATH
,
tmpPath
);
GetTempFileNameW
(
tmpPath
,
prefix
,
0
,
srcFileName
);
GetTempFileNameW
(
tmpPath
,
prefix
,
0
,
dstFileName
);
ret
=
GetTempFileNameW
(
tmpPath
,
prefix
,
0
,
srcFileName
);
ok
(
ret
!=
0
,
"GetTempFileName failed, got error %d
\n
"
,
GetLastError
());
ret
=
GetTempFileNameW
(
tmpPath
,
prefix
,
0
,
dstFileName
);
ok
(
ret
!=
0
,
"GetTempFileName failed, got error %d
\n
"
,
GetLastError
());
ret
=
SHCreateStreamOnFileEx
(
srcFileName
,
STGM_CREATE
|
STGM_READWRITE
|
STGM_DELETEONRELEASE
,
FILE_ATTRIBUTE_TEMPORARY
,
FALSE
,
NULL
,
&
src
);
ok
(
SUCCEEDED
(
ret
),
"SHCreateStreamOnFileEx failed with ret=0x%08x
\n
"
,
ret
);
...
...
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