From 0293b897e1da4aaa1953c0d4b61a2bfae03c3f0c Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 23 Jan 2024 06:05:20 +0000 Subject: __ntapi_tt_array_convert_utf8_to_utf16(): fix 4-byte code-point bit shift. --- src/argv/ntapi_tt_array_utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/argv') diff --git a/src/argv/ntapi_tt_array_utf8.c b/src/argv/ntapi_tt_array_utf8.c index 4cd3dfa..ed8dd9a 100644 --- a/src/argv/ntapi_tt_array_utf8.c +++ b/src/argv/ntapi_tt_array_utf8.c @@ -375,7 +375,7 @@ int32_t __stdcall __ntapi_tt_array_convert_utf8_to_utf16( if (byte_count) { __utf8_to_utf16_handlers[byte_count](wch,utf8); - wch = &wch[byte_count >> 3]; + wch = &wch[byte_count >> 2]; wch++; } else { return NT_STATUS_ILLEGAL_CHARACTER; -- cgit v1.2.3