mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
[RTL]
Use RtlDowncaseUnicodeChar instead of towlower svn path=/trunk/; revision=59163
This commit is contained in:
parent
b09df02972
commit
3326a5b566
|
@ -164,7 +164,7 @@ RtlIsDosDeviceName_Ustr(IN PCUNICODE_STRING PathString)
|
|||
{
|
||||
/* Get the next lower case character */
|
||||
End++;
|
||||
c = towlower(*End);
|
||||
c = RtlDowncaseUnicodeChar(*End);
|
||||
|
||||
/* Check if it's a DOS device (LPT, COM, PRN, AUX, or NUL) */
|
||||
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 */
|
||||
c = towlower(*PathCopy.Buffer);
|
||||
c = RtlDowncaseUnicodeChar(*PathCopy.Buffer);
|
||||
if ((c != 'l') && (c != 'c') && (c != 'p') && (c != 'a') && (c != 'n'))
|
||||
{
|
||||
/* Not LPT, COM, PRN, AUX, or NUL */
|
||||
|
|
Loading…
Reference in a new issue