Commit 62f80d33 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

parent 5b3d4b47
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment