kernelbase: Remove no longer needed free_console server call from FreeConsole.

We can depend on closing console connection handle now.

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-13 16:28:45 +02:00 committed by Alexandre Julliard
parent eca4d91cad
commit 1b672d1013
1 changed files with 1 additions and 7 deletions

View File

@ -584,7 +584,6 @@ HANDLE get_console_wait_handle( HANDLE handle )
BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole(void)
{
HANDLE event;
BOOL ret;
RtlEnterCriticalSection( &console_section );
@ -599,15 +598,10 @@ BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole(void)
if (console_flags & CONSOLE_ERROR_HANDLE) NtClose( GetStdHandle( STD_ERROR_HANDLE ));
console_flags = 0;
SERVER_START_REQ( free_console )
{
ret = !wine_server_call_err( req );
}
SERVER_END_REQ;
if ((event = InterlockedExchangePointer( &console_wait_event, NULL ))) NtClose( event );
RtlLeaveCriticalSection( &console_section );
return ret;
return TRUE;
}