avifil32: Fix use of wrong variable in expression.

This commit is contained in:
Andrew Talbot 2011-09-20 21:36:30 +01:00 committed by Alexandre Julliard
parent 3b9f88555f
commit f2a0f05082

View file

@ -1339,7 +1339,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc,
/* ckid,size => 2 * sizeof(DWORD) */
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 */
}