Author: hbelusca
Date: Sun Dec 25 15:06:31 2016
New Revision: 73483
URL:
http://svn.reactos.org/svn/reactos?rev=73483&view=rev
Log:
[XDK][RTL]: Fix parameter of RtlUnicodeStringToCountedOemString (see r51875); add
RtlUpcaseUnicodeStringToAnsiString into XDK.
Modified:
trunk/reactos/sdk/include/xdk/rtlfuncs.h
trunk/reactos/sdk/lib/rtl/unicode.c
Modified: trunk/reactos/sdk/include/xdk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/xdk/rtlfuncs.h…
==============================================================================
--- trunk/reactos/sdk/include/xdk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/xdk/rtlfuncs.h [iso-8859-1] Sun Dec 25 15:06:31 2016
@@ -979,6 +979,18 @@
_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
NTAPI
Modified: trunk/reactos/sdk/lib/rtl/unicode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/unicode.c?rev=…
==============================================================================
--- trunk/reactos/sdk/lib/rtl/unicode.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/rtl/unicode.c [iso-8859-1] Sun Dec 25 15:06:31 2016
@@ -1779,7 +1779,7 @@
NTAPI
RtlUnicodeStringToCountedOemString(
IN OUT POEM_STRING OemDest,
- IN PUNICODE_STRING UniSource,
+ IN PCUNICODE_STRING UniSource,
IN BOOLEAN AllocateDestinationString)
{
NTSTATUS Status;
@@ -1942,7 +1942,7 @@
NTAPI
RtlUpcaseUnicodeStringToAnsiString(
IN OUT PANSI_STRING AnsiDest,
- IN PUNICODE_STRING UniSource,
+ IN PCUNICODE_STRING UniSource,
IN BOOLEAN AllocateDestinationString)
{
NTSTATUS Status;