commit e0b590c50292c367e1c8bffb6f7b2775539e82a1 Author: Aric Stewart Date: Tue Oct 2 14:20:35 2012 -0500 imm32: in ImmIsUIMessage redirect message to default hwnd if no hwnd is specified diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 64933c2..0df4b05 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -1924,6 +1924,9 @@ BOOL WINAPI ImmIsUIMessageA( (msg == WM_MSIME_QUERYPOSITION) || (msg == WM_MSIME_DOCUMENTFEED)) { + if (!hWndIME) + hWndIME = ImmGetDefaultIMEWnd(NULL); + if (hWndIME) SendMessageA(hWndIME, msg, wParam, lParam); @@ -1954,6 +1957,9 @@ BOOL WINAPI ImmIsUIMessageW( (msg == WM_MSIME_QUERYPOSITION) || (msg == WM_MSIME_DOCUMENTFEED)) { + if (!hWndIME) + hWndIME = ImmGetDefaultIMEWnd(NULL); + if (hWndIME) SendMessageW(hWndIME, msg, wParam, lParam);