conhost: Terminate current read request when input when reading tty input fails.

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-21 17:05:32 +02:00 committed by Alexandre Julliard
parent a33594a048
commit c6909e5254
1 changed files with 5 additions and 0 deletions

View File

@ -1637,6 +1637,11 @@ static DWORD WINAPI tty_input( void *param )
}
TRACE( "NtReadFile failed: %#x\n", status );
EnterCriticalSection( &console_section );
if (console->read_ioctl) read_complete( console, status, NULL, 0, FALSE );
LeaveCriticalSection( &console_section );
return 0;
}