From: Jacek Caban Subject: [PATCH 1/4] conhost: Call ensure_tty_input_thread in IOCTL_CONDRV_PEEK implementation. Message-Id: <827b92c6-a9a2-316a-b8ae-3f5fbd5eae83@codeweavers.com> Date: Thu, 1 Oct 2020 15:08:40 +0200 Signed-off-by: Jacek Caban --- programs/conhost/conhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index fadba2728da..86a400307db 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -2476,6 +2476,7 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code, void *result; TRACE( "peek\n "); if (in_size) return STATUS_INVALID_PARAMETER; + ensure_tty_input_thread( console ); *out_size = min( *out_size, console->record_count * sizeof(INPUT_RECORD) ); if (!(result = alloc_ioctl_buffer( *out_size ))) return STATUS_NO_MEMORY; if (*out_size) memcpy( result, console->records, *out_size );