quartz: Return VFW_E_WRONG_STATE in file source if flushing.

This commit is contained in:
Maarten Lankhorst 2008-09-18 17:55:36 +02:00 committed by Alexandre Julliard
parent c71ba1a141
commit d458efe072
1 changed files with 5 additions and 1 deletions

View File

@ -1182,8 +1182,12 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
if (buffer >= This->samples)
{
if (buffer != This->samples)
{
FIXME("Returned: %u (%08x)\n", buffer, GetLastError());
hr = VFW_E_TIMEOUT;
}
else
hr = VFW_E_WRONG_STATE;
buffer = ~0;
}
else