[RTL] Add internal RtlpDowncaseUnicodeChar function and use instead RtlDowncaseUnicod...
authorDmitry Chapyshev <dmitry@reactos.org>
Thu, 15 Sep 2016 20:40:29 +0000 (20:40 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Thu, 15 Sep 2016 20:40:29 +0000 (20:40 +0000)
svn path=/trunk/; revision=72692

reactos/sdk/lib/rtl/nls.c
reactos/sdk/lib/rtl/path.c
reactos/sdk/lib/rtl/rtlp.h
reactos/sdk/lib/rtl/unicode.c

index 735e532..fc4e844 100644 (file)
@@ -86,7 +86,7 @@ RtlCustomCPToUnicodeN(IN PCPTABLEINFO CustomCP,
  * @implemented
  */
 WCHAR NTAPI
  * @implemented
  */
 WCHAR NTAPI
-RtlDowncaseUnicodeChar(IN WCHAR Source)
+RtlpDowncaseUnicodeChar(IN WCHAR Source)
 {
     USHORT Offset;
 
 {
     USHORT Offset;
 
@@ -124,6 +124,17 @@ RtlDowncaseUnicodeChar(IN WCHAR Source)
     return Source + (SHORT)Offset;
 }
 
     return Source + (SHORT)Offset;
 }
 
+/*
+ * @implemented
+ */
+WCHAR NTAPI
+RtlDowncaseUnicodeChar(IN WCHAR Source)
+{
+    PAGED_CODE_RTL();
+
+    return RtlpDowncaseUnicodeChar(Source);
+}
+
 /*
  * @implemented
  */
 /*
  * @implemented
  */
index 79cd969..9c972d2 100644 (file)
@@ -163,7 +163,7 @@ RtlIsDosDeviceName_Ustr(IN PCUNICODE_STRING PathString)
             {
                 /* Get the next lower case character */
                 End++;
             {
                 /* 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)]) &&
 
                 /* Check if it's a DOS device (LPT, COM, PRN, AUX, or NUL) */
                 if ((End < &PathCopy.Buffer[OriginalLength / sizeof(WCHAR)]) &&
@@ -189,7 +189,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 = 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 */
         if ((c != L'l') && (c != L'c') && (c != L'p') && (c != L'a') && (c != L'n'))
         {
             /* Not LPT, COM, PRN, AUX, or NUL */
index 34cff06..6942e18 100644 (file)
@@ -235,4 +235,8 @@ WCHAR
 NTAPI
 RtlpUpcaseUnicodeChar(IN WCHAR Source);
 
 NTAPI
 RtlpUpcaseUnicodeChar(IN WCHAR Source);
 
+WCHAR
+NTAPI
+RtlpDowncaseUnicodeChar(IN WCHAR Source);
+
 /* EOF */
 /* EOF */
index 5922f1e..a12e956 100644 (file)
@@ -34,9 +34,9 @@ extern PUSHORT NlsUnicodeToMbOemTable;
 
 NTSTATUS
 NTAPI
 
 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;
 {
     UNIMPLEMENTED;
     return STATUS_NOT_IMPLEMENTED;
@@ -2376,7 +2376,7 @@ RtlDowncaseUnicodeString(
         }
         else
         {
         }
         else
         {
-            UniDest->Buffer[i] = RtlDowncaseUnicodeChar(UniSource->Buffer[i]);
+            UniDest->Buffer[i] = RtlpDowncaseUnicodeChar(UniSource->Buffer[i]);
         }
     }
 
         }
     }