From e13d992a5b460e4a01c65b80c8d1fc7c0019d356 Mon Sep 17 00:00:00 2001 From: Hitesh Kumar Date: Tue, 12 Nov 2024 10:06:03 +0530 Subject: [PATCH] fixing build error for PrintSystemPathResolver --- .../src/System.Printing/CPP/src/PrintSystemPathResolver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/System.Printing/CPP/src/PrintSystemPathResolver.cpp b/src/Microsoft.DotNet.Wpf/src/System.Printing/CPP/src/PrintSystemPathResolver.cpp index 74885fa03..5feb2d5d9 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Printing/CPP/src/PrintSystemPathResolver.cpp +++ b/src/Microsoft.DotNet.Wpf/src/System.Printing/CPP/src/PrintSystemPathResolver.cpp @@ -305,7 +305,7 @@ ValidateAndCaptureServerName( { if (serverName->StartsWith("\\\\", StringComparison::Ordinal)) { - isValid = isValid & (serverName->IndexOf('\\', 3) < 0); + isValid = isValid & (serverName->IndexOf(L'\\', 3) < 0); } } } @@ -414,7 +414,7 @@ ValidateUNCName( (!(name->IndexOf(',') >= 0)) && name->StartsWith("\\\\", StringComparison::Ordinal) && (!(name->StartsWith("\\\\\\", StringComparison::Ordinal))) && - (name->IndexOf('\\', 3) >= 0)) + (name->IndexOf(L'\\', 3) >= 0)) { isValid = true; } @@ -470,7 +470,7 @@ ValidateUNCPath( (!(name->IndexOf(',') >= 0)) && name->StartsWith("\\\\", StringComparison::Ordinal) && (!(name->StartsWith("\\\\\\", StringComparison::Ordinal))) && - (name->IndexOf('\\', 3) >= 0) && + (name->IndexOf(L'\\', 3) >= 0) && (!(name->StartsWith("\\\\http://", StringComparison::OrdinalIgnoreCase)))) { isValid = true;