Compare input parameters, while ignoring differences in case
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 28s
Builds / ExectOS (i686) (push) Successful in 26s

This commit is contained in:
Rafal Kupiec 2023-12-07 16:20:40 +01:00
parent 3bd4332573
commit 089c2213a4
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -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;