Compare input parameters, while ignoring differences in case
This commit is contained in:
parent
3bd4332573
commit
089c2213a4
@ -84,7 +84,7 @@ BlpInitializeDebugConsole()
|
|||||||
while(DebugPort != NULL)
|
while(DebugPort != NULL)
|
||||||
{
|
{
|
||||||
/* Check what port is set for debugging */
|
/* 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 */
|
/* Read COM port number */
|
||||||
DebugPort += 3;
|
DebugPort += 3;
|
||||||
@ -97,7 +97,7 @@ BlpInitializeDebugConsole()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check if custom COM port address supplied */
|
/* 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 */
|
/* COM port address provided */
|
||||||
DebugPort += 3;
|
DebugPort += 3;
|
||||||
@ -140,7 +140,7 @@ BlpInitializeDebugConsole()
|
|||||||
/* Enable debug port */
|
/* Enable debug port */
|
||||||
BlpConfiguration.DebugPort |= XTBL_DEBUGPORT_SERIAL;
|
BlpConfiguration.DebugPort |= XTBL_DEBUGPORT_SERIAL;
|
||||||
}
|
}
|
||||||
else if(RtlCompareWideString(DebugPort, L"SCREEN", 5) == 0)
|
else if(RtlCompareWideStringInsensitive(DebugPort, L"SCREEN", 5) == 0)
|
||||||
{
|
{
|
||||||
/* Enable debug port */
|
/* Enable debug port */
|
||||||
BlpConfiguration.DebugPort |= XTBL_DEBUGPORT_SCREEN;
|
BlpConfiguration.DebugPort |= XTBL_DEBUGPORT_SCREEN;
|
||||||
|
Loading…
Reference in New Issue
Block a user