Commit 1b672d10 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

We can depend on closing console connection handle now. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent eca4d91c
...@@ -584,7 +584,6 @@ HANDLE get_console_wait_handle( HANDLE handle ) ...@@ -584,7 +584,6 @@ HANDLE get_console_wait_handle( HANDLE handle )
BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole(void) BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole(void)
{ {
HANDLE event; HANDLE event;
BOOL ret;
RtlEnterCriticalSection( &console_section ); RtlEnterCriticalSection( &console_section );
...@@ -599,15 +598,10 @@ BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole(void) ...@@ -599,15 +598,10 @@ BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole(void)
if (console_flags & CONSOLE_ERROR_HANDLE) NtClose( GetStdHandle( STD_ERROR_HANDLE )); if (console_flags & CONSOLE_ERROR_HANDLE) NtClose( GetStdHandle( STD_ERROR_HANDLE ));
console_flags = 0; 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 ); if ((event = InterlockedExchangePointer( &console_wait_event, NULL ))) NtClose( event );
RtlLeaveCriticalSection( &console_section ); RtlLeaveCriticalSection( &console_section );
return ret; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment