Aric Stewart : imm32: IMEs do not expect the hMsgBuf to be NULL, so initialize it.
Alexandre Julliard
julliard at winehq.org
Fri Mar 21 07:46:59 CDT 2008
Module: wine
Branch: master
Commit: 62f80d3326b207b2a8d0f863db7dce924e1ac305
URL: http://source.winehq.org/git/wine.git/?a=commit;h=62f80d3326b207b2a8d0f863db7dce924e1ac305
Author: Aric Stewart <aric at codeweavers.com>
Date: Fri Mar 21 17:16:50 2008 +0900
imm32: IMEs do not expect the hMsgBuf to be NULL, so initialize it.
---
dlls/imm32/imm.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 4ce857d..de217d1 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -611,6 +611,7 @@ HIMC WINAPI ImmCreateContext(void)
/* hCompStr is never NULL */
new_context->IMC.hCompStr = ImmCreateBlankCompStr();
+ new_context->IMC.hMsgBuf = ImmCreateIMCC(1);
return (HIMC)new_context;
}
@@ -2035,10 +2036,8 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
ImmInternalPostIMEMessage(lpTransMsg[i].message, lpTransMsg[i].wParam, lpTransMsg[i].lParam);
ImmUnlockIMCC(data->IMC.hMsgBuf);
- ImmDestroyIMCC(data->IMC.hMsgBuf);
data->IMC.dwNumMsgBuf = 0;
- data->IMC.hMsgBuf = NULL;
}
return TRUE;
More information about the wine-cvs
mailing list