5 Feb
2025
5 Feb
'25
4:57 p.m.
From: Tim Clem <tclem(a)codeweavers.com> Even when there is no context. Prevents a storm of WM_PAINTs if the window is somehow shown in that case. --- dlls/imm32/ime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/imm32/ime.c b/dlls/imm32/ime.c index 24270e89291..cf80faab930 100644 --- a/dlls/imm32/ime.c +++ b/dlls/imm32/ime.c @@ -205,7 +205,11 @@ static void ime_ui_paint( HIMC himc, HWND hwnd ) WCHAR *str; UINT len; - if (!(ctx = ImmLockIMC( himc ))) return; + if (!(ctx = ImmLockIMC( himc ))) + { + ValidateRect( hwnd, NULL ); + return; + } hdc = BeginPaint( hwnd, &ps ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7269