浏览代码

Reusing FromUnixPath

(cherry picked from commit b5b1478c13fb45b630ab0ef9beed36ecaf94f161)

Source commit: 0b54a2d0f64bddb94e985096c4ce537f611b08c7
Martin Prikryl 3 年之前
父节点
当前提交
b118d29399
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/core/Common.cpp

+ 1 - 1
source/core/Common.cpp

@@ -882,7 +882,7 @@ UnicodeString __fastcall ExpandEnvironmentVariables(const UnicodeString & Str)
 UnicodeString GetNormalizedPath(const UnicodeString & Path)
 {
   UnicodeString Result = ExcludeTrailingBackslash(Path);
-  Result = ReplaceChar(Result, L'/', L'\\');
+  Result = FromUnixPath(Result);
   return Result;
 }
 //---------------------------------------------------------------------------