avifil32: The array index is 0-based.

This commit is contained in:
Detlef Riekenberg 2008-06-22 22:23:28 +02:00 committed by Alexandre Julliard
parent 533419cb35
commit dda737f36a
1 changed files with 1 additions and 1 deletions

View File

@ -1524,7 +1524,7 @@ HRESULT WINAPI AVISaveOptionsFree(INT nStreams,LPAVICOMPRESSOPTIONS*ppOptions)
if (nStreams < 0 || ppOptions == NULL)
return AVIERR_BADPARAM;
for (; nStreams > 0; nStreams--) {
for (nStreams--; nStreams >= 0; nStreams--) {
if (ppOptions[nStreams] != NULL) {
ppOptions[nStreams]->dwFlags &= ~AVICOMPRESSF_VALID;