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
fc45c963
Commit
fc45c963
authored
May 01, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/filewriter: Propagate file I/O failure in file_writer_sink_receive().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
49f85ecb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
filewriter.c
dlls/qcap/filewriter.c
+4
-0
No files found.
dlls/qcap/filewriter.c
View file @
fc45c963
...
...
@@ -85,7 +85,11 @@ static HRESULT WINAPI file_writer_sink_receive(struct strmbase_sink *iface, IMed
offset
.
QuadPart
=
start
;
if
(
!
SetFilePointerEx
(
filter
->
file
,
offset
,
NULL
,
FILE_BEGIN
)
||
!
WriteFile
(
filter
->
file
,
data
,
stop
-
start
,
&
size
,
NULL
))
{
ERR
(
"Failed to write file, error %u.
\n
"
,
GetLastError
());
return
HRESULT_FROM_WIN32
(
hr
);
}
if
(
size
!=
stop
-
start
)
ERR
(
"Short write, %u/%u.
\n
"
,
size
,
(
DWORD
)(
stop
-
start
));
...
...
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