[NTOSKRNL_VISTA]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 13 Jul 2016 17:48:21 +0000 (17:48 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 13 Jul 2016 17:48:21 +0000 (17:48 +0000)
- Avoid ugly hacks
CORE-11596 #resolve

svn path=/trunk/; revision=71930

reactos/sdk/lib/drivers/ntoskrnl_vista/rtl.c

index f8cab32..5adfc97 100644 (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;