Module: wine Branch: master Commit: 45b8489ba5a1726cb9d0e163de41cb1c0ddaa23b URL: https://source.winehq.org/git/wine.git/?a=commit;h=45b8489ba5a1726cb9d0e163d...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Oct 1 15:08:40 2020 +0200
conhost: Call ensure_tty_input_thread in IOCTL_CONDRV_PEEK implementation.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/conhost/conhost.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index fadba2728d..86a400307d 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 );