June 22, 2026
8:02 a.m.
Rémi Bernon (@rbernon) commented about dlls/imm32/ime.c:
{ UINT msg, flags = GCS_COMPSTR | GCS_COMPCLAUSE | GCS_COMPATTR | GCS_DELTASTART | GCS_CURSORPOS; WCHAR wparam = comp && comp_len >= sizeof(WCHAR) ? *(WCHAR *)comp : 0; - input_context_set_comp_str( ctx, comp, comp_len / sizeof(WCHAR) ); + DWORD len = comp_len / sizeof(WCHAR); + + if (len && comp && !((WCHAR *)comp)[len - 1]) --len;
```suggestion:-0+0 while (len && comp && !((WCHAR *)comp)[len - 1]) --len; ``` It seems that it strips any number of trailing zeros. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11193#note_143802