25 May
2008
25 May
'08
10:25 p.m.
On Sa, 2008-05-24 at 12:06 +0900, Dmitry Timoshkov wrote:
"Detlef Riekenberg" <wine.dev(a)web.de> wrote:
- for (; nStreams > 0; nStreams--) { + for (nStreams--; nStreams >= 0; nStreams--) { if (ppOptions[nStreams] != NULL) { ppOptions[nStreams]->dwFlags &= ~AVICOMPRESSF_VALID;
Shouldn't this be
for (nStreams - 1; nStreams >= 0; nStreams--) {
instead?
No. You still read the memory after the array, since nStreams is used as index. -- By by ... Detlef