summaryrefslogtreecommitdiff
path: root/src/fs/zip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/zip.cpp')
-rw-r--r--src/fs/zip.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/zip.cpp b/src/fs/zip.cpp
index 62b60a451..1bdc22639 100644
--- a/src/fs/zip.cpp
+++ b/src/fs/zip.cpp
@@ -20,6 +20,7 @@
#include "fs/zip.h"
+#include "fs/paths.h"
#include "fs/virtzipentry.h"
#include "fs/ziplocalheader.h"
@@ -123,6 +124,7 @@ namespace Zip
buf[fileNameLen] = 0;
header->fileName = std::string(
reinterpret_cast<char*>(buf));
+ prepareFsPath(header->fileName);
header->dataOffset = ftell(arcFile) + extraFieldLen;
fseek(arcFile, extraFieldLen + header->compressSize, SEEK_CUR);
// pointer on 30 + fileNameLen + extraFieldLen + compressSize