From 033d0c3f50ccdc288eb13127cc25ad4d8749e12d Mon Sep 17 00:00:00 2001 From: trilkk Date: Mon, 17 May 2021 21:18:24 +0300 Subject: [PATCH] Fix FixPathCase bug when constructing the full path. Swap the append order for / and the path component. --- Core/FileSystems/DirectoryFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/FileSystems/DirectoryFileSystem.cpp b/Core/FileSystems/DirectoryFileSystem.cpp index fb7f0eed68..5e84837b31 100644 --- a/Core/FileSystems/DirectoryFileSystem.cpp +++ b/Core/FileSystems/DirectoryFileSystem.cpp @@ -151,8 +151,8 @@ bool FixPathCase(const std::string &basePath, std::string &path, FixPathCaseBeha path.replace(start, i - start, component); - fullPath.append(component); fullPath.append(1, '/'); + fullPath.append(component); } start = i + 1;