Author: dchapyshev Date: Thu Sep 15 20:40:29 2016 New Revision: 72692
URL: http://svn.reactos.org/svn/reactos?rev=72692&view=rev Log: [RTL] Add internal RtlpDowncaseUnicodeChar function and use instead RtlDowncaseUnicodeChar internally in RTL. RtlMultiAppendUnicodeStringBuffer parameters are specified (it is documented on: http://undoc.airesoft.co.uk/ntdll.dll/RtlMultiAppendUnicodeStringBuffer.php)
Modified: trunk/reactos/sdk/lib/rtl/nls.c trunk/reactos/sdk/lib/rtl/path.c trunk/reactos/sdk/lib/rtl/rtlp.h trunk/reactos/sdk/lib/rtl/unicode.c
Modified: trunk/reactos/sdk/lib/rtl/nls.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/nls.c?rev=72692... ============================================================================== --- trunk/reactos/sdk/lib/rtl/nls.c [iso-8859-1] (original) +++ trunk/reactos/sdk/lib/rtl/nls.c [iso-8859-1] Thu Sep 15 20:40:29 2016 @@ -86,7 +86,7 @@ * @implemented */ WCHAR NTAPI -RtlDowncaseUnicodeChar(IN WCHAR Source) +RtlpDowncaseUnicodeChar(IN WCHAR Source) { USHORT Offset;
@@ -122,6 +122,17 @@ DPRINT("Result: %hx\n", Source + (SHORT)Offset);
return Source + (SHORT)Offset; +} + +/* + * @implemented + */ +WCHAR NTAPI +RtlDowncaseUnicodeChar(IN WCHAR Source) +{ + PAGED_CODE_RTL(); + + return RtlpDowncaseUnicodeChar(Source); }
/*
Modified: trunk/reactos/sdk/lib/rtl/path.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/path.c?rev=7269... ============================================================================== --- trunk/reactos/sdk/lib/rtl/path.c [iso-8859-1] (original) +++ trunk/reactos/sdk/lib/rtl/path.c [iso-8859-1] Thu Sep 15 20:40:29 2016 @@ -163,7 +163,7 @@ { /* Get the next lower case character */ End++; - c = RtlDowncaseUnicodeChar(*End); + c = RtlpDowncaseUnicodeChar(*End);
/* Check if it's a DOS device (LPT, COM, PRN, AUX, or NUL) */ if ((End < &PathCopy.Buffer[OriginalLength / sizeof(WCHAR)]) && @@ -189,7 +189,7 @@ }
/* Get the next lower case character and check if it's a DOS device */ - c = RtlDowncaseUnicodeChar(*PathCopy.Buffer); + c = RtlpDowncaseUnicodeChar(*PathCopy.Buffer); if ((c != L'l') && (c != L'c') && (c != L'p') && (c != L'a') && (c != L'n')) { /* Not LPT, COM, PRN, AUX, or NUL */
Modified: trunk/reactos/sdk/lib/rtl/rtlp.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/rtlp.h?rev=7269... ============================================================================== --- trunk/reactos/sdk/lib/rtl/rtlp.h [iso-8859-1] (original) +++ trunk/reactos/sdk/lib/rtl/rtlp.h [iso-8859-1] Thu Sep 15 20:40:29 2016 @@ -235,4 +235,8 @@ NTAPI RtlpUpcaseUnicodeChar(IN WCHAR Source);
+WCHAR +NTAPI +RtlpDowncaseUnicodeChar(IN WCHAR Source); + /* EOF */
Modified: trunk/reactos/sdk/lib/rtl/unicode.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/unicode.c?rev=7... ============================================================================== --- trunk/reactos/sdk/lib/rtl/unicode.c [iso-8859-1] (original) +++ trunk/reactos/sdk/lib/rtl/unicode.c [iso-8859-1] Thu Sep 15 20:40:29 2016 @@ -34,9 +34,9 @@
NTSTATUS NTAPI -RtlMultiAppendUnicodeStringBuffer(IN PVOID Unknown, - IN ULONG Unknown2, - IN PVOID Unknown3) +RtlMultiAppendUnicodeStringBuffer(OUT PRTL_UNICODE_STRING_BUFFER StringBuffer, + IN ULONG NumberOfAddends, + IN PCUNICODE_STRING Addends) { UNIMPLEMENTED; return STATUS_NOT_IMPLEMENTED; @@ -2376,7 +2376,7 @@ } else { - UniDest->Buffer[i] = RtlDowncaseUnicodeChar(UniSource->Buffer[i]); + UniDest->Buffer[i] = RtlpDowncaseUnicodeChar(UniSource->Buffer[i]); } }