From b8283efe51289a292843d6a5be57bfcfab98ca3b Mon Sep 17 00:00:00 2001 From: justin1014 Date: Wed, 20 Nov 2002 23:58:32 +0000 Subject: [PATCH] fixed bug in zlib support (oops, my bad) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1797 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/zlib/INFBLOCK.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/zlib/INFBLOCK.C b/Source/zlib/INFBLOCK.C index 3370b679..7e28d264 100644 --- a/Source/zlib/INFBLOCK.C +++ b/Source/zlib/INFBLOCK.C @@ -657,9 +657,9 @@ int r=Z_OK; h = s->sub.trees.tb + ((uInt)b & (uInt)inflate_mask[t]); t = h->bits; c = h->base; - DUMPBITS(t) if (c < 16) { + DUMPBITS(t) s->sub.trees.t_blens[s->sub.trees.index++] = c; } else /* c == 16..18 */ @@ -674,7 +674,8 @@ int r=Z_OK; i=c-14; j=3; } - NEEDBITS(i) + NEEDBITS(t+i) + DUMPBITS(t) j += (uInt)b & (uInt)inflate_mask[i]; DUMPBITS(i) i = s->sub.trees.index;