@@ -1032,8 +1032,8 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
10321032 while (acc < file_info .size_file_extra )
10331033 {
10341034 uLong headerId ;
1035- uLong dataSize ;
1036-
1035+ uLong dataSize ;
1036+
10371037 if (unz64local_getShort (& s -> z_filefunc , s -> filestream ,& headerId ) != UNZ_OK )
10381038 err = UNZ_ERRNO ;
10391039
@@ -1043,34 +1043,34 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
10431043 /* ZIP64 extra fields */
10441044 if (headerId == 0x0001 )
10451045 {
1046- uLong uL ;
1047-
1048- if (file_info .uncompressed_size == ( ZPOS64_T )( unsigned long ) -1 )
1049- {
1050- if (unz64local_getLong64 (& s -> z_filefunc , s -> filestream ,& file_info .uncompressed_size ) != UNZ_OK )
1051- err = UNZ_ERRNO ;
1052- }
1053-
1054- if (file_info .compressed_size == ( ZPOS64_T )( unsigned long ) -1 )
1055- {
1056- if (unz64local_getLong64 (& s -> z_filefunc , s -> filestream ,& file_info .compressed_size ) != UNZ_OK )
1057- err = UNZ_ERRNO ;
1058- }
1059-
1060- if (file_info_internal .offset_curfile == ( ZPOS64_T )( unsigned long ) -1 )
1061- {
1062- /* Relative Header offset */
1063- if (unz64local_getLong64 (& s -> z_filefunc , s -> filestream ,& file_info_internal .offset_curfile ) != UNZ_OK )
1064- err = UNZ_ERRNO ;
1065- }
1066-
1067- if (file_info .disk_num_start == ( unsigned long ) -1 )
1068- {
1069- /* Disk Start Number */
1070- if (unz64local_getLong (& s -> z_filefunc , s -> filestream ,& uL ) != UNZ_OK )
1071- err = UNZ_ERRNO ;
1072- }
1073-
1046+ uLong uL ;
1047+
1048+ if (file_info .uncompressed_size == 0xFFFFFFFF )
1049+ {
1050+ if (unz64local_getLong64 (& s -> z_filefunc , s -> filestream ,& file_info .uncompressed_size ) != UNZ_OK )
1051+ err = UNZ_ERRNO ;
1052+ }
1053+
1054+ if (file_info .compressed_size == 0xFFFFFFFF )
1055+ {
1056+ if (unz64local_getLong64 (& s -> z_filefunc , s -> filestream ,& file_info .compressed_size ) != UNZ_OK )
1057+ err = UNZ_ERRNO ;
1058+ }
1059+
1060+ if (file_info_internal .offset_curfile == 0xFFFFFFFF )
1061+ {
1062+ /* Relative Header offset */
1063+ if (unz64local_getLong64 (& s -> z_filefunc , s -> filestream ,& file_info_internal .offset_curfile ) != UNZ_OK )
1064+ err = UNZ_ERRNO ;
1065+ }
1066+
1067+ if (file_info .disk_num_start == 0xFFFFFFFF )
1068+ {
1069+ /* Disk Start Number */
1070+ if (unz64local_getLong (& s -> z_filefunc , s -> filestream ,& uL ) != UNZ_OK )
1071+ err = UNZ_ERRNO ;
1072+ }
1073+
10741074 }
10751075 else
10761076 {
0 commit comments