avifil32: Properly check the required buffer size in AVIFILE_AddFrame().

This commit is contained in:
Henri Verbeet 2010-01-05 21:29:00 +01:00 committed by Alexandre Julliard
parent 32c3adbbaa
commit c2051d33d6
1 changed files with 1 additions and 1 deletions

View File

@ -1384,7 +1384,7 @@ static HRESULT AVIFILE_AddFrame(IAVIStreamImpl *This, DWORD ckid, DWORD size, DW
This->sInfo.dwFlags |= AVISTREAMINFO_FORMATCHANGES;
This->sInfo.dwFormatChangeCount++;
if (This->idxFmtChanges == NULL || This->sInfo.dwFormatChangeCount < This->nIdxFmtChanges) {
if (This->idxFmtChanges == NULL || This->nIdxFmtChanges < This->sInfo.dwFormatChangeCount) {
This->nIdxFmtChanges += 16;
if (This->idxFmtChanges == NULL)
This->idxFmtChanges =