X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7baa6764f8fdfcb93a0d0125039ec69c0e0ecf3..cc9a39576ab6edb139c9bb77d01f4118853e04d2:/src/zlib/inflate.c diff --git a/src/zlib/inflate.c b/src/zlib/inflate.c index be67fd6920..c6d38266d0 100644 --- a/src/zlib/inflate.c +++ b/src/zlib/inflate.c @@ -109,6 +109,7 @@ z_streamp strm; state = (struct inflate_state FAR *)strm->state; strm->total_in = strm->total_out = state->total = 0; strm->msg = Z_NULL; + strm->adler = 1; /* to support ill-conceived Java test suite */ state->mode = HEAD; state->last = 0; state->havedict = 0; @@ -861,8 +862,8 @@ int flush; } } - if (state->mode == BAD) - break; + /* handle error breaks in while */ + if (state->mode == BAD) break; /* build code tables */ state->next = state->codes;