Use RtlDowncaseUnicodeChar instead of towlower

svn path=/trunk/; revision=59163
This commit is contained in:
Hermès Bélusca-Maïto 2013-06-02 22:11:50 +00:00
parent b09df02972
commit 3326a5b566

View file

@ -164,7 +164,7 @@ RtlIsDosDeviceName_Ustr(IN PCUNICODE_STRING PathString)
{ {
/* Get the next lower case character */ /* Get the next lower case character */
End++; End++;
c = towlower(*End); c = RtlDowncaseUnicodeChar(*End);
/* Check if it's a DOS device (LPT, COM, PRN, AUX, or NUL) */ /* Check if it's a DOS device (LPT, COM, PRN, AUX, or NUL) */
if ((End < &PathCopy.Buffer[OriginalLength / sizeof(WCHAR)]) && if ((End < &PathCopy.Buffer[OriginalLength / sizeof(WCHAR)]) &&
@ -190,7 +190,7 @@ RtlIsDosDeviceName_Ustr(IN PCUNICODE_STRING PathString)
} }
/* Get the next lower case character and check if it's a DOS device */ /* Get the next lower case character and check if it's a DOS device */
c = towlower(*PathCopy.Buffer); c = RtlDowncaseUnicodeChar(*PathCopy.Buffer);
if ((c != 'l') && (c != 'c') && (c != 'p') && (c != 'a') && (c != 'n')) if ((c != 'l') && (c != 'c') && (c != 'p') && (c != 'a') && (c != 'n'))
{ {
/* Not LPT, COM, PRN, AUX, or NUL */ /* Not LPT, COM, PRN, AUX, or NUL */