Commit fc45c963 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qcap/filewriter: Propagate file I/O failure in file_writer_sink_receive().

parent 49f85ecb
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment