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

This commit is contained in:
Henri Verbeet 2010-01-04 21:33:13 +01:00 committed by Alexandre Julliard
parent 4c36e12be6
commit 1fb72a37eb
1 changed files with 1 additions and 1 deletions

View File

@ -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 */