conhost: Terminate pseudo console on input error.

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-24 17:27:12 +02:00 committed by Alexandre Julliard
parent c440926547
commit 5f24f30124
1 changed files with 2 additions and 1 deletions

View File

@ -2658,7 +2658,7 @@ static NTSTATUS process_console_ioctls( struct console *console )
static int main_loop( struct console *console, HANDLE signal )
{
HANDLE signal_event = NULL;
HANDLE wait_handles[2];
HANDLE wait_handles[3];
unsigned int wait_cnt = 0;
unsigned short signal_id;
IO_STATUS_BLOCK signal_io;
@ -2677,6 +2677,7 @@ static int main_loop( struct console *console, HANDLE signal )
wait_handles[wait_cnt++] = console->server;
if (signal) wait_handles[wait_cnt++] = signal_event;
if (console->input_thread) wait_handles[wait_cnt++] = console->input_thread;
for (;;)
{