equal
deleted
inserted
replaced
466 |
466 |
467 finfo->entry = origfinfo->entry; |
467 finfo->entry = origfinfo->entry; |
468 finfo->io = zip_get_io(origfinfo->io, NULL, finfo->entry); |
468 finfo->io = zip_get_io(origfinfo->io, NULL, finfo->entry); |
469 GOTO_IF_MACRO(!finfo->io, ERRPASS, failed); |
469 GOTO_IF_MACRO(!finfo->io, ERRPASS, failed); |
470 |
470 |
|
471 initializeZStream(&finfo->stream); |
471 if (finfo->entry->compression_method != COMPMETH_NONE) |
472 if (finfo->entry->compression_method != COMPMETH_NONE) |
472 { |
473 { |
473 finfo->buffer = (PHYSFS_uint8 *) allocator.Malloc(ZIP_READBUFSIZE); |
474 finfo->buffer = (PHYSFS_uint8 *) allocator.Malloc(ZIP_READBUFSIZE); |
474 GOTO_IF_MACRO(!finfo->buffer, PHYSFS_ERR_OUT_OF_MEMORY, failed); |
475 GOTO_IF_MACRO(!finfo->buffer, PHYSFS_ERR_OUT_OF_MEMORY, failed); |
475 if (zlib_err(inflateInit2(&finfo->stream, -MAX_WBITS)) != Z_OK) |
476 if (zlib_err(inflateInit2(&finfo->stream, -MAX_WBITS)) != Z_OK) |