Re: [PATCH] - fall back to the main HWND when there is no IMM HWND
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
On Sun, May 25, 2008, James Hawkins wrote:
On Sun, May 25, 2008 at 6:59 PM, Christopher GAUTIER <krys(a)via.ecp.fr> wrote:
- 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.
Good point. My test case proves that my patch is actually wrong. I will continue to investigate the issue. Cheers, Christopher
participants (2)
-
Christopher GAUTIER -
James Hawkins