summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/paths.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fs/paths.cpp b/src/fs/paths.cpp
index 050b9d00c..0fd7da622 100644
--- a/src/fs/paths.cpp
+++ b/src/fs/paths.cpp
@@ -118,10 +118,11 @@ void prepareFsPath(std::string &path)
std::string &fixDirSeparators(std::string &str)
{
- if (dirSeparator[0] == '/')
- return str;
-
+#ifdef WIN32
return replaceAll(str, "/", "\\");
+#else
+ return str;
+#endif
}
std::string removeLast(const std::string &str)