imm32: IMEs do not expect the hMsgBuf to be NULL, so initialize it.
This commit is contained in:
parent
5b3d4b473c
commit
62f80d3326
|
@ -611,6 +611,7 @@ HIMC WINAPI ImmCreateContext(void)
|
||||||
|
|
||||||
/* hCompStr is never NULL */
|
/* hCompStr is never NULL */
|
||||||
new_context->IMC.hCompStr = ImmCreateBlankCompStr();
|
new_context->IMC.hCompStr = ImmCreateBlankCompStr();
|
||||||
|
new_context->IMC.hMsgBuf = ImmCreateIMCC(1);
|
||||||
|
|
||||||
return (HIMC)new_context;
|
return (HIMC)new_context;
|
||||||
}
|
}
|
||||||
|
@ -2035,10 +2036,8 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
|
||||||
ImmInternalPostIMEMessage(lpTransMsg[i].message, lpTransMsg[i].wParam, lpTransMsg[i].lParam);
|
ImmInternalPostIMEMessage(lpTransMsg[i].message, lpTransMsg[i].wParam, lpTransMsg[i].lParam);
|
||||||
|
|
||||||
ImmUnlockIMCC(data->IMC.hMsgBuf);
|
ImmUnlockIMCC(data->IMC.hMsgBuf);
|
||||||
ImmDestroyIMCC(data->IMC.hMsgBuf);
|
|
||||||
|
|
||||||
data->IMC.dwNumMsgBuf = 0;
|
data->IMC.dwNumMsgBuf = 0;
|
||||||
data->IMC.hMsgBuf = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue