From ff57d7ec48b3df89c3ef71237b2f76ca0408daf6 Mon Sep 17 00:00:00 2001 From: dongkaixing Date: Mon, 28 Feb 2022 15:20:39 +0800 Subject: [PATCH] support zip64 file open and improve mem performance Signed-off-by: dongkaixing --- contrib/minizip/unzip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c index fe404fe..d4cc47c 100644 --- a/contrib/minizip/unzip.c +++ b/contrib/minizip/unzip.c @@ -838,9 +838,9 @@ extern unzFile ZEXPORT unzOpenFile (FILE *inputfile) return NULL; } - zlib_filefunc_def pzlib_filefunc32_def; - fill_fopen_filefunc(&pzlib_filefunc32_def); - fill_zlib_filefunc64_32_def_from_filefunc32(&us.z_filefunc, &pzlib_filefunc32_def); + us.z_filefunc.zseek32_file = NULL; + us.z_filefunc.ztell32_file = NULL; + fill_fopen64_filefunc(&us.z_filefunc.zfile_func64); us.is64bitOpenFunction = 0; us.filestream = inputfile; -- GitLab