misc/libphysfs/archiver_zip.c
changeset 12452 e18cfe90e4e2
parent 12451 30da743f118b
child 13393 ae5d6448c5be
equal deleted inserted replaced
12451:30da743f118b 12452:e18cfe90e4e2
   419 
   419 
   420             if (!io->seek(io, entry->offset + (encrypted ? 12 : 0)))
   420             if (!io->seek(io, entry->offset + (encrypted ? 12 : 0)))
   421                 return 0;
   421                 return 0;
   422 
   422 
   423             inflateEnd(&finfo->stream);
   423             inflateEnd(&finfo->stream);
   424             inflateCopy(&finfo->stream, &str);
   424             memcpy(&finfo->stream, &str, sizeof (z_stream));
   425             inflateEnd(&str);
       
   426             finfo->uncompressed_position = finfo->compressed_position = 0;
   425             finfo->uncompressed_position = finfo->compressed_position = 0;
   427 
   426 
   428             if (encrypted)
   427             if (encrypted)
   429                 memcpy(finfo->crypto_keys, finfo->initial_crypto_keys, 12);
   428                 memcpy(finfo->crypto_keys, finfo->initial_crypto_keys, 12);
   430         } /* if */
   429         } /* if */