Haidong Yu : conhost: Add missing LeaveCriticalSection.

Alexandre Julliard julliard at winehq.org
Mon Sep 21 15:12:18 CDT 2020


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

Author: Haidong Yu <yuhaidong at uniontech.com>
Date:   Mon Sep 21 17:55:35 2020 +0800

conhost: Add missing LeaveCriticalSection.

Signed-off-by: Haidong Yu <yuhaidong at uniontech.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 c637b16379..c0a0e08e6d 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -1659,6 +1659,7 @@ static DWORD WINAPI tty_input( void *param )
             switch (ch)
             {
             case 3: /* end of text */
+                LeaveCriticalSection( &console_section );
                 return 0;
             case '\n':
                 key_press( console, '\n', VK_RETURN, LEFT_CTRL_PRESSED );




More information about the wine-cvs mailing list