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>
This commit is contained in:
Jacek Caban 2020-09-01 15:36:45 +02:00 committed by Alexandre Julliard
parent b23ef1d836
commit 9864f9c024

View file

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