This commit is contained in:
Wojtek Figat
2021-10-17 16:01:57 +02:00
parent a906e0c857
commit 25be2902ac
2 changed files with 2 additions and 2 deletions

View File

@@ -369,7 +369,7 @@ void StringUtils::PathRemoveRelativeParts(String& path)
path.Clear();
for (auto& e : stack)
path /= e;
if (isRooted && path[0] != '/')
if (isRooted && path.HasChars() && path[0] != '/')
path.Insert(0, TEXT("/"));
}