IMM32: prevent crash using CJK locate but no input method

Mike McCormack mike at codeweavers.com
Sun Oct 3 04:47:40 CDT 2004


Running Word XP with LANG=zh_TW.utf8 but no X input method cause a 
crash.  This fixes it.

Mike


ChangeLog:
* prevent crash using CJK locate but no input method
-------------- next part --------------
Index: dlls/imm32/imm.c
===================================================================
RCS file: /home/wine/wine/dlls/imm32/imm.c,v
retrieving revision 1.34
diff -u -r1.34 imm.c
--- dlls/imm32/imm.c	8 Sep 2004 01:37:24 -0000	1.34
+++ dlls/imm32/imm.c	3 Oct 2004 09:30:52 -0000
@@ -1050,6 +1050,9 @@
   FIXME("(%p, %ld, %ld, %ld): stub\n",
         hIMC, dwAction, dwIndex, dwValue);
 
+    if (!root_context)
+        return rc;
+
     switch(dwAction)
     {
         case NI_CHANGECANDIDATELIST:


More information about the wine-patches mailing list