]> git.saurik.com Git - wxWidgets.git/blobdiff - src/zlib/inflate.c
Temporary fix for link error to ~wxZipOutputStream()
[wxWidgets.git] / src / zlib / inflate.c
index be67fd6920056b9cad0b8d871f36ee8c1c7a2051..c6d38266d07edd11c8ad7b755e0ea87c9aea2188 100644 (file)
@@ -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;