Fix FixPathCase bug when constructing the full path.

Swap the append order for / and the path component.
This commit is contained in:
trilkk 2021-05-17 21:18:24 +03:00
parent 4ec3ce5ecc
commit 033d0c3f50

View File

@ -151,8 +151,8 @@ bool FixPathCase(const std::string &basePath, std::string &path, FixPathCaseBeha
path.replace(start, i - start, component); path.replace(start, i - start, component);
fullPath.append(component);
fullPath.append(1, '/'); fullPath.append(1, '/');
fullPath.append(component);
} }
start = i + 1; start = i + 1;