[NTOSKRNL_VISTA]

- Avoid ugly hacks
CORE-11596 #resolve

svn path=/trunk/; revision=71930
This commit is contained in:
Thomas Faber 2016-07-13 17:48:21 +00:00
parent 8889af9d21
commit 02da519230

View file

@ -70,12 +70,7 @@ NTSTATUS NTAPI RtlUnicodeToUTF8N(CHAR *utf8_dest, ULONG utf8_bytes_max,
}
/* encode ch as UTF-8 */
#ifndef __REACTOS__
assert(ch <= 0x10ffff);
#endif
#ifdef __REACTOS__
utf8_ch_len = 0; // FIXME: Check whether a non-zero value might be better for the case ch >= 0x200000 ?
#endif
ASSERT(ch <= 0x10ffff);
if (ch < 0x80)
{
utf8_ch[0] = ch & 0x7f;