imm32: IMEs do not expect the hMsgBuf to be NULL, so initialize it.

This commit is contained in:
Aric Stewart 2008-03-21 17:16:50 +09:00 committed by Alexandre Julliard
parent 5b3d4b473c
commit 62f80d3326
1 changed files with 1 additions and 2 deletions

View File

@ -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;