Fixed non-Zip64 .zip files.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 07 Jun 2012 10:42:19 -0400
changeset 1289 5e267ff5efea
parent 1286 662a7e180c48
child 1290 a47c773cc5ee
Fixed non-Zip64 .zip files.
src/archiver_zip.c
--- a/src/archiver_zip.c	Thu Jun 07 10:21:43 2012 -0400
+++ b/src/archiver_zip.c	Thu Jun 07 10:42:19 2012 -0400
@@ -1347,6 +1347,8 @@
     BAIL_IF_MACRO(!readui16(io, &entryCount16), ERRPASS, 0);
     BAIL_IF_MACRO(ui16 != entryCount16, PHYSFS_ERR_CORRUPT, 0);
 
+    info->entryCount = entryCount16;
+
     /* size of the central directory */
     BAIL_IF_MACRO(!readui32(io, &ui32), ERRPASS, 0);