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
This commit is contained in:
justin1014 2002-11-20 23:58:32 +00:00
parent e398d993ad
commit b8283efe51

View file

@ -657,9 +657,9 @@ int r=Z_OK;
h = s->sub.trees.tb + ((uInt)b & (uInt)inflate_mask[t]); h = s->sub.trees.tb + ((uInt)b & (uInt)inflate_mask[t]);
t = h->bits; t = h->bits;
c = h->base; c = h->base;
DUMPBITS(t)
if (c < 16) if (c < 16)
{ {
DUMPBITS(t)
s->sub.trees.t_blens[s->sub.trees.index++] = c; s->sub.trees.t_blens[s->sub.trees.index++] = c;
} }
else /* c == 16..18 */ else /* c == 16..18 */
@ -674,7 +674,8 @@ int r=Z_OK;
i=c-14; i=c-14;
j=3; j=3;
} }
NEEDBITS(i) NEEDBITS(t+i)
DUMPBITS(t)
j += (uInt)b & (uInt)inflate_mask[i]; j += (uInt)b & (uInt)inflate_mask[i];
DUMPBITS(i) DUMPBITS(i)
i = s->sub.trees.index; i = s->sub.trees.index;