Fix build break
authorJan Kotas <jkotas@microsoft.com>
Fri, 16 Mar 2018 18:34:56 +0000 (11:34 -0700)
committerJan Kotas <jkotas@microsoft.com>
Tue, 20 Mar 2018 20:30:40 +0000 (13:30 -0700)
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/IO/PathHelper.Windows.cs

index 2b17fff..ed49422 100644 (file)
@@ -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();