Update miniz to 2.10 with ZIP64 support

This commit is contained in:
baldurk
2019-10-14 14:06:42 +01:00
parent e371b5ab72
commit 6be0736d24
4 changed files with 8819 additions and 4893 deletions
+7507 -4712
View File
File diff suppressed because it is too large Load Diff
+1304 -180
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -275,6 +275,7 @@
</ForcedIncludeFiles>
</ClCompile>
<ClCompile Include="3rdparty\miniz\miniz.c">
<DisableSpecificWarnings>4100;4127</DisableSpecificWarnings>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<ForcedIncludeFiles>
</ForcedIncludeFiles>
+7 -1
View File
@@ -393,7 +393,13 @@ struct UpgradeCommand : public Command
*wfn = L'\\';
}
mz_zip_reader_extract_to_wfile(&zip, i, target.c_str(), 0);
FILE *target_file = NULL;
_wfopen_s(&target_file, target.c_str(), L"wb");
if(target_file)
{
mz_zip_reader_extract_to_cfile(&zip, i, target_file, 0);
fclose(target_file);
}
}
}
}