Module: wine Branch: master Commit: 62f80d3326b207b2a8d0f863db7dce924e1ac305 URL: http://source.winehq.org/git/wine.git/?a=commit;h=62f80d3326b207b2a8d0f863db...
Author: Aric Stewart aric@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;