26 May
2008
26 May
'08
1:15 a.m.
On Sun, May 25, 2008 at 6:59 PM, Christopher GAUTIER <krys(a)via.ecp.fr> wrote:
Description:
It is apparently valid to call ImmGetDefaultIMEWnd() without first opening the IME with ImmSetOpenStatus(). In such cases, ImmGetDefaultIMEWnd returns NULL (the value of hwndDefault), which indicates a failure according to MSDN. As a result, some applications may report a IME failure. Fallbacking to the main window handle fixes this.
Changelog: - dlls/imm32/imm.c: fall back to the main HWND when there is no IMM HWND in ImmGetDefaultIMEWnd()
Please add a test case to prove this behavior is correct. -- James Hawkins