Commit f71deb06 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

quartz/filesource: Check for past EOF read in _Request().

On Vista+ ReadFile() returns FALSE and sets ERROR_IO_PENDING even if the requested read results in ERROR_HANDLE_EOF. Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e0049050
......@@ -723,6 +723,9 @@ static HRESULT WINAPI FileAsyncReader_Request(IAsyncReader *iface, IMediaSample
if (FAILED(hr = IMediaSample_GetTime(sample, &start, &end)))
return hr;
if (BYTES_FROM_MEDIATIME(start) >= filter->file_size.QuadPart)
return HRESULT_FROM_WIN32(ERROR_HANDLE_EOF);
if (FAILED(hr = IMediaSample_GetPointer(sample, &data)))
return hr;
......
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