From 5ddd35f493f40ecd447fa8d0a4591e92a8e91306 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 15 May 2008 19:53:36 +0900 Subject: [PATCH] cabinet: Fix the regression caused by 4046075462c00f4479f185d1c0514584ff851223. --- dlls/cabinet/fdi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c index 3194d6707a5..47e36e826ca 100644 --- a/dlls/cabinet/fdi.c +++ b/dlls/cabinet/fdi.c @@ -1178,8 +1178,9 @@ static cab_LONG fdi_Zipinflate_codes(const struct Ziphuft *tl, const struct Ziph ZIPDUMPBITS(e) do { - d = max(d & (ZIPWSIZE - 1), w); - e = min(ZIPWSIZE - d, n); + d &= ZIPWSIZE - 1; + e = ZIPWSIZE - max(d, w); + e = min(e, n); n -= e; do { -- 2.11.4.GIT