Commit 1fb72a37 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

avifil32: Just assign maxSize to This->cbBuffer in AVIFILE_ReadBlock().

parent 4c36e12b
......@@ -2036,7 +2036,7 @@ static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD pos,
This->lpBuffer = HeapReAlloc(GetProcessHeap(), 0, This->lpBuffer, maxSize);
if (This->lpBuffer == NULL)
return AVIERR_MEMORY;
This->cbBuffer = max(size, This->sInfo.dwSuggestedBufferSize);
This->cbBuffer = maxSize;
}
/* now read the complete chunk into our buffer */
......
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