Fix PathRemoveRelativeParts for rooted paths
This commit is contained in:
@@ -261,7 +261,7 @@ void StringUtils::PathRemoveRelativeParts(String& path)
|
||||
path.Clear();
|
||||
for (auto& e : stack)
|
||||
path /= e;
|
||||
if (isRooted)
|
||||
if (isRooted && path[0] != '/')
|
||||
path.Insert(0, TEXT("/"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user