imm32: Detach hMsgBuf when sending messages in ImmGenerateMessage.
commite7f725ec5f641fbb425bb44cbfa17b6cd5de5da9
authorAric Stewart <aric@codeweavers.com>
Fri, 12 Feb 2016 15:31:11 +0000 (12 09:31 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 15 Feb 2016 12:30:04 +0000 (15 21:30 +0900)
tree7ac90b785a1f314a1da8e7035014d757d5220ec4
parentf253e6cf9395c5895920ea4f09bd0994d253483e
imm32: Detach hMsgBuf when sending messages in ImmGenerateMessage.

The issues is that if a message being sent in ImmGenerateMessage gets
turned around and sent into an IME that in response to that message
calls ImmGenerateMessage, the hMsgBuf still has the old message in it
and it ends up getting processed in a loop again and again.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/imm32/imm.c