]> git.saurik.com Git - wxWidgets.git/blobdiff - src/zlib/infback.c
moved wxWindow::GetBestSize implementation into DoGetBestSize to make it easier to...
[wxWidgets.git] / src / zlib / infback.c
index 110b03b857f26c3e76793a687ca6d8f55890a1a8..e9709984a8986852e4715cf978203af6b59f58d3 100644 (file)
@@ -434,6 +434,9 @@ void FAR *out_desc;
                 }
             }
 
+            if (state->mode == BAD)
+                break;
+
             /* build code tables */
             state->next = state->codes;
             state->lencode = (code const FAR *)(state->next);