cabinet: Fix the regression caused by 4046075462.

This commit is contained in:
Dmitry Timoshkov 2008-05-15 19:53:36 +09:00 committed by Alexandre Julliard
parent 2470b0b316
commit 5ddd35f493
1 changed files with 3 additions and 2 deletions

View File

@ -1178,8 +1178,9 @@ static cab_LONG fdi_Zipinflate_codes(const struct Ziphuft *tl, const struct Ziph
ZIPDUMPBITS(e) ZIPDUMPBITS(e)
do do
{ {
d = max(d & (ZIPWSIZE - 1), w); d &= ZIPWSIZE - 1;
e = min(ZIPWSIZE - d, n); e = ZIPWSIZE - max(d, w);
e = min(e, n);
n -= e; n -= e;
do do
{ {