Commit 5ddd35f4 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

cabinet: Fix the regression caused by 40460754.

parent 2470b0b3
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment