conhost: Don't create tty input thread if we don't have tty_input handle.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-10-06 18:53:37 +02:00 committed by Alexandre Julliard
parent a90017845d
commit 1d2c29dfb0
1 changed files with 1 additions and 0 deletions

View File

@ -1719,6 +1719,7 @@ done:
static BOOL ensure_tty_input_thread( struct console *console )
{
if (!console->tty_input) return TRUE;
if (!console->input_thread)
console->input_thread = CreateThread( NULL, 0, tty_input, console, 0, NULL );
return console->input_thread != NULL;