winex11.drv: Fix xim_set_focus no IC condition check.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56236
This commit is contained in:
Piotr Caban 2024-01-22 18:08:55 +01:00 committed by Alexandre Julliard
parent a9cc6f0218
commit dd44e2e6d6

View file

@ -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 );
}