Compare input parameters, while ignoring differences in case
This commit is contained in:
parent
a261c68808
commit
368035c105
@ -61,7 +61,7 @@ BlpUpdateGlobalConfiguration(IN PWCHAR Options)
|
|||||||
while(Argument != NULL)
|
while(Argument != NULL)
|
||||||
{
|
{
|
||||||
/* Check all provided parameters */
|
/* Check all provided parameters */
|
||||||
if(RtlCompareWideString(Argument, L"DEFAULT=", 8) == 0)
|
if(RtlCompareWideStringInsensitive(Argument, L"DEFAULT=", 8) == 0)
|
||||||
{
|
{
|
||||||
/* Skip to the argument value and calculate argument length */
|
/* Skip to the argument value and calculate argument length */
|
||||||
Argument += 8;
|
Argument += 8;
|
||||||
@ -72,7 +72,7 @@ BlpUpdateGlobalConfiguration(IN PWCHAR Options)
|
|||||||
RtlCopyMemory(BlpConfiguration.Default, Argument, (Length * sizeof(WCHAR)) - 1);
|
RtlCopyMemory(BlpConfiguration.Default, Argument, (Length * sizeof(WCHAR)) - 1);
|
||||||
BlpConfiguration.Default[Length] = '\0';
|
BlpConfiguration.Default[Length] = '\0';
|
||||||
}
|
}
|
||||||
else if(RtlCompareWideString(Argument, L"DEBUG=", 6) == 0)
|
else if(RtlCompareWideStringInsensitive(Argument, L"DEBUG=", 6) == 0)
|
||||||
{
|
{
|
||||||
/* Skip to the argument value */
|
/* Skip to the argument value */
|
||||||
Argument += 6;
|
Argument += 6;
|
||||||
@ -87,12 +87,12 @@ BlpUpdateGlobalConfiguration(IN PWCHAR Options)
|
|||||||
BlpConfiguration.Debug[Length] = '\0';
|
BlpConfiguration.Debug[Length] = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(RtlCompareWideString(Argument, L"SHELL", 5) == 0)
|
else if(RtlCompareWideStringInsensitive(Argument, L"SHELL", 5) == 0)
|
||||||
{
|
{
|
||||||
/* Force shell mode */
|
/* Force shell mode */
|
||||||
BlpConfiguration.Shell = TRUE;
|
BlpConfiguration.Shell = TRUE;
|
||||||
}
|
}
|
||||||
else if(RtlCompareWideString(Argument, L"TIMEOUT=", 8) == 0)
|
else if(RtlCompareWideStringInsensitive(Argument, L"TIMEOUT=", 8) == 0)
|
||||||
{
|
{
|
||||||
/* Skip to the argument value */
|
/* Skip to the argument value */
|
||||||
Argument += 8;
|
Argument += 8;
|
||||||
@ -108,7 +108,7 @@ BlpUpdateGlobalConfiguration(IN PWCHAR Options)
|
|||||||
Argument++;
|
Argument++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(RtlCompareWideString(Argument, L"TUNE=", 5) == 0)
|
else if(RtlCompareWideStringInsensitive(Argument, L"TUNE=", 5) == 0)
|
||||||
{
|
{
|
||||||
/* Skip to the argument value */
|
/* Skip to the argument value */
|
||||||
Argument += 5;
|
Argument += 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user