* GetFullPath and GetRootLength Corrected
* Removed getpathroot
* using span
* "\\" changed to @"\"
{
// No matching root, root to specified drive
// "D:Foo" and "C:\Bar" => "D:Foo"
- // "D:\Foo" and "\\?\C:\Bar" => "\\?\D:\Foo"
- combinedPath = path.Insert(2, "\\");
+ // "D:Foo" and "\\?\C:\Bar" => "\\?\D:\Foo"
+ combinedPath = PathInternal.IsDevice(basePath) ? CombineNoChecksInternal(basePath.AsSpan().Slice(0, 4), path.AsSpan().Slice(0, 2), @"\", path.AsSpan().Slice(2)) : path.Insert(2, "\\");
}
}
else