summaryrefslogtreecommitdiffhomepage
path: root/src/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-23 06:05:20 +0000
committermidipix <writeonce@midipix.org>2024-01-23 06:05:20 +0000
commit0293b897e1da4aaa1953c0d4b61a2bfae03c3f0c (patch)
treec5ab1f7e5bed6e1dc8eefae9ac6e8384e760d97e /src/argv
parentde53a2207b390a790b0583abeb7dd5a87101b1b5 (diff)
downloadntapi-0293b897e1da4aaa1953c0d4b61a2bfae03c3f0c.tar.bz2
ntapi-0293b897e1da4aaa1953c0d4b61a2bfae03c3f0c.tar.xz
__ntapi_tt_array_convert_utf8_to_utf16(): fix 4-byte code-point bit shift.
Diffstat (limited to 'src/argv')
-rw-r--r--src/argv/ntapi_tt_array_utf8.c2
1 files changed, 1 insertions, 1 deletions
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;