]> git.saurik.com Git - wxWidgets.git/blobdiff - src/zlib/infback.c
Fix for incomplete setup (wxPalmOS case).
[wxWidgets.git] / src / zlib / infback.c
index 110b03b857f26c3e76793a687ca6d8f55890a1a8..262f97c73ac757642cfe37097cebc653e9bc7a5c 100644 (file)
@@ -434,6 +434,9 @@ void FAR *out_desc;
                 }
             }
 
+            /* handle error breaks in while */
+            if (state->mode == BAD) break;
+
             /* build code tables */
             state->next = state->codes;
             state->lencode = (code const FAR *)(state->next);