Module: wine Branch: master Commit: dd44e2e6d6464433beb794b3b8556c5e53205f5b URL: https://gitlab.winehq.org/wine/wine/-/commit/dd44e2e6d6464433beb794b3b8556c5...
Author: Piotr Caban piotr@codeweavers.com Date: Mon Jan 22 18:08:55 2024 +0100
winex11.drv: Fix xim_set_focus no IC condition check.
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 ); }