conhost: Add missing LeaveCriticalSection.

Signed-off-by: Haidong Yu <yuhaidong@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Haidong Yu 2020-09-21 17:55:35 +08:00 committed by Alexandre Julliard
parent 5db533d39d
commit 4eb3ab95c7
1 changed files with 1 additions and 0 deletions

View File

@ -1659,6 +1659,7 @@ static DWORD WINAPI tty_input( void *param )
switch (ch) switch (ch)
{ {
case 3: /* end of text */ case 3: /* end of text */
LeaveCriticalSection( &console_section );
return 0; return 0;
case '\n': case '\n':
key_press( console, '\n', VK_RETURN, LEFT_CTRL_PRESSED ); key_press( console, '\n', VK_RETURN, LEFT_CTRL_PRESSED );