From 2a8a02385180b042dbd0ccf56e4b9754727003f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 25 Dec 2016 15:06:31 +0000 Subject: [PATCH] [XDK][RTL]: Fix parameter of RtlUnicodeStringToCountedOemString (see r51875); add RtlUpcaseUnicodeStringToAnsiString into XDK. svn path=/trunk/; revision=73483 --- reactos/sdk/include/xdk/rtlfuncs.h | 12 ++++++++++++ reactos/sdk/lib/rtl/unicode.c | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/reactos/sdk/include/xdk/rtlfuncs.h b/reactos/sdk/include/xdk/rtlfuncs.h index 01059d43e50..b3e82b80925 100644 --- a/reactos/sdk/include/xdk/rtlfuncs.h +++ b/reactos/sdk/include/xdk/rtlfuncs.h @@ -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 diff --git a/reactos/sdk/lib/rtl/unicode.c b/reactos/sdk/lib/rtl/unicode.c index 99da382ea6e..486bf1d8d89 100644 --- a/reactos/sdk/lib/rtl/unicode.c +++ b/reactos/sdk/lib/rtl/unicode.c @@ -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;