summaryrefslogtreecommitdiff
path: root/updater/zbin/minizip/unzip.c
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-11-10 01:32:22 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-11-10 01:32:22 +0000
commit0ff20b1aac36808f86b110d3028b6913c0634de7 (patch)
treea180b0b54bb2221980b4119f4acfe685be0216f3 /updater/zbin/minizip/unzip.c
parent63ea931032b288b78e611cf45543b655be295d16 (diff)
More appropriate minizip fix
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@550 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/zbin/minizip/unzip.c')
-rw-r--r--updater/zbin/minizip/unzip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/updater/zbin/minizip/unzip.c b/updater/zbin/minizip/unzip.c
index fc956ab..44f9876 100644
--- a/updater/zbin/minizip/unzip.c
+++ b/updater/zbin/minizip/unzip.c
@@ -985,7 +985,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
// Read extrafield
if ((err==UNZ_OK) && (extraField!=NULL))
{
- ZPOS64_T uSizeRead, uPosRead;
+ ZPOS64_T uSizeRead ;
if (file_info.size_file_extra<extraFieldBufferSize)
uSizeRead = file_info.size_file_extra;
else
@@ -1003,11 +1003,11 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
if (ZREAD64(s->z_filefunc, s->filestream,extraField,(uLong)uSizeRead)!=uSizeRead)
err=UNZ_ERRNO;
- uPosRead = ZTELL64(s->z_filefunc, s->filestream);
- ZSEEK64(s->z_filefunc, s->filestream,uPosRead - uSizeRead,ZLIB_FILEFUNC_SEEK_SET);
+ lSeek += file_info.size_file_extra - (uLong)uSizeRead;
}
+ else
+ lSeek += file_info.size_file_extra;
- lSeek += file_info.size_file_extra;
if ((err==UNZ_OK) && (file_info.size_file_extra != 0))
{
@@ -1761,7 +1761,7 @@ extern int ZEXPORT unzReadCurrentFile (unzFile file, voidp buf, unsigned len)
pfile_in_zip_read_info->stream.avail_in = (uInt)uReadThis;
}
- if ((pfile_in_zip_read_info->compression_method==0) || (pfile_in_zip_read_info->raw))
+ if ((pfile_in_zip_read_info->compression_method==0) || (pfile_in_zip_read_info->raw))
{
uInt uDoCopy,i ;