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
13af267e
Commit
13af267e
authored
Sep 14, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use proper return types in MSI_RecordSetStreamFromFileW.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b0b2a1a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
record.c
dlls/msi/record.c
+7
-6
No files found.
dlls/msi/record.c
View file @
13af267e
...
...
@@ -727,7 +727,8 @@ UINT MSI_RecordSetStream(MSIRECORD *rec, UINT iField, IStream *stream)
UINT
MSI_RecordSetStreamFromFileW
(
MSIRECORD
*
rec
,
UINT
iField
,
LPCWSTR
szFilename
)
{
IStream
*
stm
=
NULL
;
HRESULT
r
;
HRESULT
hr
;
UINT
ret
;
if
(
(
iField
==
0
)
||
(
iField
>
rec
->
count
)
)
return
ERROR_INVALID_PARAMETER
;
...
...
@@ -746,16 +747,16 @@ UINT MSI_RecordSetStreamFromFileW(MSIRECORD *rec, UINT iField, LPCWSTR szFilenam
return
ERROR_INVALID_FIELD
;
ofs
.
QuadPart
=
0
;
r
=
IStream_Seek
(
stm
,
ofs
,
STREAM_SEEK_SET
,
&
cur
);
if
(
FAILED
(
r
)
)
h
r
=
IStream_Seek
(
stm
,
ofs
,
STREAM_SEEK_SET
,
&
cur
);
if
(
FAILED
(
hr
)
)
return
ERROR_FUNCTION_FAILED
;
}
else
{
/* read the file into a stream and save the stream in the record */
r
=
RECORD_StreamFromFile
(
szFilename
,
&
stm
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
r
et
=
RECORD_StreamFromFile
(
szFilename
,
&
stm
);
if
(
ret
!=
ERROR_SUCCESS
)
return
r
et
;
/* if all's good, store it in the record */
MSI_RecordSetStream
(
rec
,
iField
,
stm
);
...
...
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