[PATCH 0/1] MR4909: winex11.drv: Fix xim_set_focus no IC condition check.
From: Piotr Caban <piotr(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56236 --- dlls/winex11.drv/xim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/xim.c b/dlls/winex11.drv/xim.c index d304dbb26fa..c6a93eb5e16 100644 --- a/dlls/winex11.drv/xim.c +++ b/dlls/winex11.drv/xim.c @@ -484,7 +484,7 @@ XIC X11DRV_get_ic( HWND hwnd ) void xim_set_focus( HWND hwnd, BOOL focus ) { XIC xic; - if ((xic = X11DRV_get_ic( hwnd ))) return; + if (!(xic = X11DRV_get_ic( hwnd ))) return; if (focus) XSetICFocus( xic ); else XUnsetICFocus( xic ); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4909
This merge request was approved by Rémi Bernon. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4909
participants (3)
-
Piotr Caban -
Piotr Caban (@piotr) -
Rémi Bernon