Module: wine Branch: master Commit: 9864f9c024ad6e45d2e4369dca7418bc9121d727 URL: https://source.winehq.org/git/wine.git/?a=commit;h=9864f9c024ad6e45d2e4369dc...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Sep 1 15:36:45 2020 +0200
conhost: Support CTRL_C_EVENT in write_console_input.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/conhost/conhost.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index 0050f4d1ad..aef9b8e199 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -250,7 +250,14 @@ static NTSTATUS write_console_input( struct console *console, const INPUT_RECORD count--; if (records[i].Event.KeyEvent.bKeyDown) { - FIXME("CTRL C\n"); + struct condrv_ctrl_event ctrl_event; + IO_STATUS_BLOCK io; + + ctrl_event.event = CTRL_C_EVENT; + ctrl_event.group_id = 0; + NtDeviceIoControlFile( console->server, NULL, NULL, NULL, &io, IOCTL_CONDRV_CTRL_EVENT, + &ctrl_event, sizeof(ctrl_event), NULL, 0 ); + } } else i++;