Author: hbelusca
Date: Sun Aug 7 18:52:49 2016
New Revision: 72150
URL:
http://svn.reactos.org/svn/reactos?rev=72150&view=rev
Log:
[SDK][RTL][NDK]: Update RtlIsTextUnicode prototype.
Modified:
trunk/reactos/sdk/include/ndk/rtlfuncs.h
trunk/reactos/sdk/lib/rtl/actctx.c
trunk/reactos/sdk/lib/rtl/unicode.c
Modified: trunk/reactos/sdk/include/ndk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/ndk/rtlfuncs.h…
==============================================================================
--- trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/ndk/rtlfuncs.h [iso-8859-1] Sun Aug 7 18:52:49 2016
@@ -2199,9 +2199,9 @@
BOOLEAN
NTAPI
RtlIsTextUnicode(
- PVOID Buffer,
- INT Length,
- INT *Flags
+ _In_ CONST VOID* Buffer,
+ _In_ INT Size,
+ _Inout_opt_ INT* Flags
);
_IRQL_requires_max_(PASSIVE_LEVEL)
Modified: trunk/reactos/sdk/lib/rtl/actctx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/actctx.c?rev=7…
==============================================================================
--- trunk/reactos/sdk/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/rtl/actctx.c [iso-8859-1] Sun Aug 7 18:52:49 2016
@@ -2515,7 +2515,7 @@
:
ACTIVATION_CONTEXT_PATH_TYPE_NONE;
unicode_tests = IS_TEXT_UNICODE_SIGNATURE | IS_TEXT_UNICODE_REVERSE_SIGNATURE;
- if (RtlIsTextUnicode((PVOID)buffer, (ULONG)size, &unicode_tests ))
+ if (RtlIsTextUnicode(buffer, size, &unicode_tests ))
{
xmlbuf.ptr = buffer;
xmlbuf.end = xmlbuf.ptr + size / sizeof(WCHAR);
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 Aug 7 18:52:49 2016
@@ -1238,7 +1238,7 @@
*/
BOOLEAN
NTAPI
-RtlIsTextUnicode( PVOID buf, INT len, INT *pf )
+RtlIsTextUnicode(CONST VOID* buf, INT len, INT* pf)
{
static const WCHAR std_control_chars[] = {'\r', '\n', '\t',
' ', 0x3000, 0};
static const WCHAR byterev_control_chars[] = {0x0d00, 0x0a00, 0x0900, 0x2000, 0};