aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 7db18a7bb..23ad550c9 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -2113,8 +2113,12 @@ namespace {
virtual bool VisitDirectory(const std::filesystem::path&, const path_view& DirectoryName) override
{
- std::string DirName8 = WideToUtf8(DirectoryName);
- Dirs.push_back(DirName8);
+#if ZEN_PLATFORM_WINDOWS
+ std::string DirectoryName8 = WideToUtf8(DirectoryName);
+#else
+ std::string DirectoryName8 = std::string(DirectoryName);
+#endif
+ Dirs.push_back(DirectoryName8);
return false;
}