From 089c2213a450567d9cf84885082611cfa0f4b152 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Thu, 7 Dec 2023 16:20:40 +0100 Subject: [PATCH] Compare input parameters, while ignoring differences in case --- xtldr2/debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xtldr2/debug.c b/xtldr2/debug.c index 87b4a08..668766a 100644 --- a/xtldr2/debug.c +++ b/xtldr2/debug.c @@ -84,7 +84,7 @@ BlpInitializeDebugConsole() while(DebugPort != NULL) { /* Check what port is set for debugging */ - if(RtlCompareWideString(DebugPort, L"COM", 3) == 0) + if(RtlCompareWideStringInsensitive(DebugPort, L"COM", 3) == 0) { /* Read COM port number */ DebugPort += 3; @@ -97,7 +97,7 @@ BlpInitializeDebugConsole() } /* Check if custom COM port address supplied */ - if(PortNumber == 0 && RtlCompareWideString(DebugPort, L":0x", 3) == 0) + if(PortNumber == 0 && RtlCompareWideStringInsensitive(DebugPort, L":0x", 3) == 0) { /* COM port address provided */ DebugPort += 3; @@ -140,7 +140,7 @@ BlpInitializeDebugConsole() /* Enable debug port */ BlpConfiguration.DebugPort |= XTBL_DEBUGPORT_SERIAL; } - else if(RtlCompareWideString(DebugPort, L"SCREEN", 5) == 0) + else if(RtlCompareWideStringInsensitive(DebugPort, L"SCREEN", 5) == 0) { /* Enable debug port */ BlpConfiguration.DebugPort |= XTBL_DEBUGPORT_SCREEN;