[SDK][RTL][NDK]: Update RtlIsTextUnicode prototype.

svn path=/trunk/; revision=72150
This commit is contained in:
Hermès Bélusca-Maïto 2016-08-07 18:52:49 +00:00
parent 2ecffb24d7
commit 0644419fd1
3 changed files with 5 additions and 5 deletions

View file

@ -2199,9 +2199,9 @@ NTSYSAPI
BOOLEAN BOOLEAN
NTAPI NTAPI
RtlIsTextUnicode( RtlIsTextUnicode(
PVOID Buffer, _In_ CONST VOID* Buffer,
INT Length, _In_ INT Size,
INT *Flags _Inout_opt_ INT* Flags
); );
_IRQL_requires_max_(PASSIVE_LEVEL) _IRQL_requires_max_(PASSIVE_LEVEL)

View file

@ -2515,7 +2515,7 @@ static NTSTATUS parse_manifest( struct actctx_loader* acl, struct assembly_ident
: ACTIVATION_CONTEXT_PATH_TYPE_NONE; : ACTIVATION_CONTEXT_PATH_TYPE_NONE;
unicode_tests = IS_TEXT_UNICODE_SIGNATURE | IS_TEXT_UNICODE_REVERSE_SIGNATURE; 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.ptr = buffer;
xmlbuf.end = xmlbuf.ptr + size / sizeof(WCHAR); xmlbuf.end = xmlbuf.ptr + size / sizeof(WCHAR);

View file

@ -1238,7 +1238,7 @@ RtlUnicodeStringToOemString(
*/ */
BOOLEAN BOOLEAN
NTAPI 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 std_control_chars[] = {'\r', '\n', '\t', ' ', 0x3000, 0};
static const WCHAR byterev_control_chars[] = {0x0d00, 0x0a00, 0x0900, 0x2000, 0}; static const WCHAR byterev_control_chars[] = {0x0d00, 0x0a00, 0x0900, 0x2000, 0};