From 8ce81d1f47a399fffa868cdb38a4947cd47947de Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 7 Feb 2023 17:43:11 +0000 Subject: __ntapi_tt_array_convert_utf8_to_utf16(): add final termination (win32 abi). --- src/argv/ntapi_tt_array_utf8.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/argv/ntapi_tt_array_utf8.c b/src/argv/ntapi_tt_array_utf8.c index a2f6d0f..4cd3dfa 100644 --- a/src/argv/ntapi_tt_array_utf8.c +++ b/src/argv/ntapi_tt_array_utf8.c @@ -385,6 +385,7 @@ int32_t __stdcall __ntapi_tt_array_convert_utf8_to_utf16( *wch++ = 0; } + *wch++ = 0; *warrv = 0; *bytes_written = sizeof(wchar16_t) * (wch - buffer); -- cgit v1.2.3