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

Alexandre Julliard julliard at winehq.org
Wed Oct 7 16:04:09 CDT 2020


Module: wine
Branch: master
Commit: 1d2c29dfb0bac8915b8e2ea07ecf20a33ca89527
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1d2c29dfb0bac8915b8e2ea07ecf20a33ca89527

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Oct  6 18:53:37 2020 +0200

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

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 7d3564a120..8f09ebbb3f 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -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;




More information about the wine-cvs mailing list