diff --git a/cocos2dx/support/zip_support/unzip.cpp b/cocos2dx/support/zip_support/unzip.cpp index b8878fe98d..29a589eb73 100644 --- a/cocos2dx/support/zip_support/unzip.cpp +++ b/cocos2dx/support/zip_support/unzip.cpp @@ -1092,7 +1092,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file, if (lSeek!=0) { if (ZSEEK64(s->z_filefunc, s->filestream,lSeek,ZLIB_FILEFUNC_SEEK_CUR)==0) - lSeek=0; + ;//lSeek=0; else err=UNZ_ERRNO; } @@ -1100,10 +1100,10 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file, if ((file_info.size_file_comment>0) && (commentBufferSize>0)) if (ZREAD64(s->z_filefunc, s->filestream,szComment,uSizeRead)!=uSizeRead) err=UNZ_ERRNO; - lSeek+=file_info.size_file_comment - uSizeRead; + //lSeek+=file_info.size_file_comment - uSizeRead; } - else - lSeek+=file_info.size_file_comment; + //else + // lSeek+=file_info.size_file_comment; if ((err==UNZ_OK) && (pfile_info!=NULL)) @@ -1536,7 +1536,7 @@ int ZEXPORT unzOpenCurrentFile3 (unzFile file, int* method, /* #endif */ (s->cur_file_info.compression_method!=Z_DEFLATED)) - err=UNZ_BADZIPFILE; + //err=UNZ_BADZIPFILE; pfile_in_zip_read_info->crc32_wait=s->cur_file_info.crc; pfile_in_zip_read_info->crc32=0;