summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-03-16 11:34:56 -0700
committerJan Kotas <jkotas@microsoft.com>2018-03-20 13:30:40 -0700
commitf0e315f0fccfa96fd8b228fd0471821bcc1268c0 (patch)
treea1cef855514d1361de7360be990214e652c0214d /src
parente431eb23fc21b773c17b96bb0f8189597d436b98 (diff)
downloadcoreclr-f0e315f0fccfa96fd8b228fd0471821bcc1268c0.tar.gz
coreclr-f0e315f0fccfa96fd8b228fd0471821bcc1268c0.tar.bz2
coreclr-f0e315f0fccfa96fd8b228fd0471821bcc1268c0.zip
Fix build break
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/shared/System/IO/PathHelper.Windows.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/shared/System/IO/PathHelper.Windows.cs b/src/mscorlib/shared/System/IO/PathHelper.Windows.cs
index 2b17fff091..ed49422c1a 100644
--- a/src/mscorlib/shared/System/IO/PathHelper.Windows.cs
+++ b/src/mscorlib/shared/System/IO/PathHelper.Windows.cs
@@ -56,7 +56,7 @@ namespace System.IO
// Get the full path
GetFullPathName(path.AsSpan(terminate: true), ref builder);
- string result = builder.AsSpan().Contains('~')
+ string result = builder.AsSpan().IndexOf('~') >= 0
? TryExpandShortFileName(ref builder, originalPath: null)
: builder.ToString();