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:
parent
a90017845d
commit
1d2c29dfb0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue