imm32: Fix output buffer length handling for A -> W conversion case of GCS_COMPSTR.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fd7cda93a3
commit
0f2f72d7b9
|
@ -1217,7 +1217,7 @@ static INT CopyCompStringIMEtoClient(const InputContextData *data, const void *s
|
|||
if (is_himc_ime_unicode(data) ^ unicode)
|
||||
{
|
||||
if (unicode)
|
||||
ret = MultiByteToWideChar(CP_ACP, 0, src, src_len, dst, dst_len);
|
||||
ret = MultiByteToWideChar(CP_ACP, 0, src, src_len, dst, dst_len / sizeof(WCHAR));
|
||||
else
|
||||
ret = WideCharToMultiByte(CP_ACP, 0, src, src_len, dst, dst_len, NULL, NULL);
|
||||
ret *= char_size;
|
||||
|
|
Loading…
Reference in New Issue