[PATCH] - fall back to the main HWND when there is no IMM HWND

Christopher GAUTIER krys at via.ecp.fr
Sun May 25 18:59:20 CDT 2008


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()

-------------- next part --------------
A non-text attachment was scrubbed...
Name: imm32.patch
Type: text/x-diff
Size: 873 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080526/e7e4795c/attachment-0001.patch 


More information about the wine-patches mailing list