From: Marc-Aurel Zent <mzent@codeweavers.com> --- dlls/imm32/ime.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/imm32/ime.c b/dlls/imm32/ime.c index ed3f262c47a..f3c18d38537 100644 --- a/dlls/imm32/ime.c +++ b/dlls/imm32/ime.c @@ -557,9 +557,9 @@ UINT WINAPI ImeToAsciiEx( UINT vkey, UINT vsc, BYTE *state, TRANSMSGLIST *msgs, size = compstr->dwSize; } while (status == STATUS_BUFFER_TOO_SMALL); - if (status) WARN( "WINE_IME_TO_ASCII_EX returned status %#lx\n", status ); - else + switch (status) { + case STATUS_SUCCESS: if (compstr->dwCompStrOffset || compstr->dwResultStrLen) { TRANSMSG msg = {.message = ime_set_composition_status( himc, TRUE )}; @@ -595,6 +595,15 @@ UINT WINAPI ImeToAsciiEx( UINT vkey, UINT vsc, BYTE *state, TRANSMSGLIST *msgs, TRANSMSG msg = {.message = WM_IME_KEYDOWN, .wParam = vkey, .lParam = vsc}; msgs->TransMsg[count++] = msg; } + break; + case STATUS_NOT_IMPLEMENTED: + { + TRANSMSG msg = {.message = WM_KEYDOWN, .wParam = vkey, .lParam = vsc}; + msgs->TransMsg[count++] = msg; + break; + } + default: + WARN( "WINE_IME_TO_ASCII_EX returned status %#lx\n", status ); } ImmUnlockIMCC( ctx->hCompStr ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9992