Commit f2a0f050 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

avifil32: Fix use of wrong variable in expression.

parent 3b9f8855
...@@ -1339,7 +1339,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc, ...@@ -1339,7 +1339,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc,
/* ckid,size => 2 * sizeof(DWORD) */ /* ckid,size => 2 * sizeof(DWORD) */
dwPos += 2 * sizeof(DWORD) + size; dwPos += 2 * sizeof(DWORD) + size;
if (size >= This->paf->dwMoviChunkPos - 2 * sizeof(DWORD)) if (dwPos >= This->paf->dwMoviChunkPos - 2 * sizeof(DWORD))
return AVIERR_UNSUPPORTED; /* not enough space left */ return AVIERR_UNSUPPORTED; /* not enough space left */
} }
......
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