diff --git a/source/shared_lib/sources/platform/common/platform_common.cpp b/source/shared_lib/sources/platform/common/platform_common.cpp index 3817a8f3e..1b13a7695 100644 --- a/source/shared_lib/sources/platform/common/platform_common.cpp +++ b/source/shared_lib/sources/platform/common/platform_common.cpp @@ -471,7 +471,11 @@ bool EndsWith(const string &str, const string& key) void endPathWithSlash(string &path) { if(EndsWith(path, "/") == false && EndsWith(path, "\\") == false) { +#if defined(WIN32) + path += "\\"; +#else path += "/"; +#endif } }