diff options
| -rw-r--r-- | mpq-file.c | 2 | 
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ static int cache_sector(struct mpq_file_t * mpq_f, int sector) {                  z.zalloc = NULL;                  z.zfree = NULL;                  if (inflateInit(&z) == 0) { -                    r = inflate(&z, Z_FINISH) == 0 ? 1 : 0; +                    r = inflate(&z, Z_FINISH) >= 0 ? 1 : 0;                      ol = z.total_out;                      inflateEnd(&z);                  }  | 
