diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/IO/PathHelper.Windows.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/IO/PathHelper.Windows.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/IO/PathHelper.Windows.cs b/src/System.Private.CoreLib/shared/System/IO/PathHelper.Windows.cs index ed49422c1..bada2f5cd 100644 --- a/src/System.Private.CoreLib/shared/System/IO/PathHelper.Windows.cs +++ b/src/System.Private.CoreLib/shared/System/IO/PathHelper.Windows.cs @@ -243,7 +243,7 @@ namespace System.IO ReadOnlySpan<char> output = builderToUse.AsSpan(rootDifference); string returnValue = ((originalPath != null) && output.Equals(originalPath.AsSpan(), StringComparison.Ordinal)) - ? originalPath : new string(output); + ? originalPath : output.ToString(); inputBuilder.Dispose(); return returnValue; |