summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/virtfs/zip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/zip.cpp b/src/fs/virtfs/zip.cpp
index 3a4e349dc..8dd7d8080 100644
--- a/src/fs/virtfs/zip.cpp
+++ b/src/fs/virtfs/zip.cpp
@@ -61,7 +61,7 @@ namespace Zip
std::vector<ZipLocalHeader*> &restrict headers = entry->mHeaders;
std::vector<std::string> &restrict dirs = entry->mDirs;
FILE *restrict const arcFile = fopen(archiveName.c_str(),
- "r");
+ "rb");
if (arcFile == nullptr)
{
reportAlways("Can't open zip file %s",
@@ -216,7 +216,7 @@ namespace Zip
}
FILE *restrict const arcFile = fopen(
header->zipEntry->root.c_str(),
- "r");
+ "rb");
if (arcFile == nullptr)
{
reportAlways("Can't open zip file %s",