user32: WM_IME_SETCONTEXT messages are optional

Dmitry Timoshkov dmitry at codeweavers.com
Fri Sep 28 10:22:37 CDT 2007


Hello,

this patch should fix the failures reported by Anatoly Lyutin on wine-devel,
test.winehq.org/data reports also confirm this.

Changelog:
    user32: WM_IME_SETCONTEXT messages are optional.

---
 dlls/user32/tests/msg.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 7f86c06..88c5228 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -261,14 +261,14 @@ static const struct message WmSwitchChild[] = {
     { WM_NCACTIVATE, sent|wparam|defwinproc, 1 }, /* in the 1st MDI child */
     { HCBT_SETFOCUS, hook },
     { WM_KILLFOCUS, sent|defwinproc }, /* in the 2nd MDI child */
-    { WM_IME_SETCONTEXT, sent|wparam|defwinproc, 0 },/* in the 1st MDI child */
-    { WM_IME_SETCONTEXT, sent|wparam, 1 }, /* in MDI client */
+    { WM_IME_SETCONTEXT, sent|wparam|defwinproc|optional, 0 },/* in the 1st MDI child */
+    { WM_IME_SETCONTEXT, sent|wparam|optional, 1 }, /* in MDI client */
     { EVENT_OBJECT_FOCUS, winevent_hook|wparam|lparam, OBJID_CLIENT, 0 },
     { WM_SETFOCUS, sent },/* in the MDI client */
     { HCBT_SETFOCUS, hook },
     { WM_KILLFOCUS, sent },/* in the MDI client */
-    { WM_IME_SETCONTEXT, sent|wparam, 0 }, /* in MDI client */
-    { WM_IME_SETCONTEXT, sent|wparam|defwinproc, 1 }, /* in the 1st MDI child */
+    { WM_IME_SETCONTEXT, sent|wparam|optional, 0 }, /* in MDI client */
+    { WM_IME_SETCONTEXT, sent|wparam|defwinproc|optional, 1 }, /* in the 1st MDI child */
     { EVENT_OBJECT_FOCUS, winevent_hook|wparam|lparam, OBJID_CLIENT, 0 },
     { WM_SETFOCUS, sent|defwinproc }, /* in the 1st MDI child */
     { WM_MDIACTIVATE, sent|defwinproc },/* in the 1st MDI child */
-- 
1.5.3.2






More information about the wine-patches mailing list