avifil32: Just assign maxSize to This->cbBuffer in AVIFILE_ReadBlock().
This commit is contained in:
parent
4c36e12be6
commit
1fb72a37eb
|
@ -2036,7 +2036,7 @@ static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD pos,
|
||||||
This->lpBuffer = HeapReAlloc(GetProcessHeap(), 0, This->lpBuffer, maxSize);
|
This->lpBuffer = HeapReAlloc(GetProcessHeap(), 0, This->lpBuffer, maxSize);
|
||||||
if (This->lpBuffer == NULL)
|
if (This->lpBuffer == NULL)
|
||||||
return AVIERR_MEMORY;
|
return AVIERR_MEMORY;
|
||||||
This->cbBuffer = max(size, This->sInfo.dwSuggestedBufferSize);
|
This->cbBuffer = maxSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now read the complete chunk into our buffer */
|
/* now read the complete chunk into our buffer */
|
||||||
|
|
Loading…
Reference in New Issue