Fix bug in StringUtils::PathRemoveRelativeParts when going up to the Windows drive with relative path bits
This commit is contained in:
@@ -631,11 +631,16 @@ namespace Flax.Build
|
||||
if (stack.Count != 0)
|
||||
{
|
||||
var popped = stack.Pop();
|
||||
var windowsDriveStart = popped.IndexOf('\\');
|
||||
if (popped == "..")
|
||||
{
|
||||
stack.Push(popped);
|
||||
stack.Push(bit);
|
||||
}
|
||||
else if (windowsDriveStart != -1)
|
||||
{
|
||||
stack.Push(popped.Substring(windowsDriveStart + 1));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user