瀏覽代碼

Fixed non-Zip64 .zip files.

Ryan C. Gordon 13 年之前
父節點
當前提交
9159717a27
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/archiver_zip.c

+ 2 - 0
src/archiver_zip.c

@@ -1347,6 +1347,8 @@ static int zip_parse_end_of_central_dir(PHYSFS_Io *io, ZIPinfo *info,
     BAIL_IF_MACRO(!readui16(io, &entryCount16), ERRPASS, 0);
     BAIL_IF_MACRO(!readui16(io, &entryCount16), ERRPASS, 0);
     BAIL_IF_MACRO(ui16 != entryCount16, PHYSFS_ERR_CORRUPT, 0);
     BAIL_IF_MACRO(ui16 != entryCount16, PHYSFS_ERR_CORRUPT, 0);
 
 
+    info->entryCount = entryCount16;
+
     /* size of the central directory */
     /* size of the central directory */
     BAIL_IF_MACRO(!readui32(io, &ui32), ERRPASS, 0);
     BAIL_IF_MACRO(!readui32(io, &ui32), ERRPASS, 0);