mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[NTOSKRNL_VISTA lib]
Initialize utf8_ch_len to zero before using it (at each turn of the for-loop). As I couldn't find this code in Wine, I couldn't see whether they already fixed it or not. Caught by Victor. CORE-11596 svn path=/trunk/; revision=71928
This commit is contained in:
parent
d512139905
commit
341b360aa5
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ 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
|
||||
if (ch < 0x80)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue