[XDK][RTL]: Fix parameter of RtlUnicodeStringToCountedOemString (see r51875); add...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 25 Dec 2016 15:06:31 +0000 (15:06 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 25 Dec 2016 15:06:31 +0000 (15:06 +0000)
svn path=/trunk/; revision=73483

reactos/sdk/include/xdk/rtlfuncs.h
reactos/sdk/lib/rtl/unicode.c

index 01059d4..b3e82b8 100644 (file)
@@ -978,6 +978,18 @@ RtlUnicodeStringToAnsiString(
   _In_ PCUNICODE_STRING SourceString,
   _In_ BOOLEAN AllocateDestinationString);
 
+_IRQL_requires_max_(PASSIVE_LEVEL)
+_Must_inspect_result_
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlUpcaseUnicodeStringToAnsiString(
+  _When_(AllocateDestinationString, _Out_ _At_(DestinationString->Buffer, __drv_allocatesMem(Mem)))
+  _When_(!AllocateDestinationString, _Inout_)
+    PANSI_STRING DestinationString,
+  _In_ PCUNICODE_STRING SourceString,
+  _In_ BOOLEAN AllocateDestinationString);
+
 _IRQL_requires_max_(PASSIVE_LEVEL)
 NTSYSAPI
 ULONG
index 99da382..486bf1d 100644 (file)
@@ -1779,7 +1779,7 @@ NTSTATUS
 NTAPI
 RtlUnicodeStringToCountedOemString(
     IN OUT POEM_STRING OemDest,
-    IN PUNICODE_STRING UniSource,
+    IN PCUNICODE_STRING UniSource,
     IN BOOLEAN AllocateDestinationString)
 {
     NTSTATUS Status;
@@ -1942,7 +1942,7 @@ NTSTATUS
 NTAPI
 RtlUpcaseUnicodeStringToAnsiString(
     IN OUT PANSI_STRING AnsiDest,
-    IN PUNICODE_STRING UniSource,
+    IN PCUNICODE_STRING UniSource,
     IN BOOLEAN  AllocateDestinationString)
 {
     NTSTATUS Status;