kernelbase: Add ClosePseudoConsole implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-08-20 23:49:00 +02:00 committed by Alexandre Julliard
parent 7ea9f9edee
commit 0ec191eb0f
1 changed files with 12 additions and 1 deletions

View File

@ -1704,7 +1704,18 @@ HRESULT WINAPI CreatePseudoConsole( COORD size, HANDLE input, HANDLE output, DWO
*/
void WINAPI ClosePseudoConsole( HPCON handle )
{
FIXME( "%p\n", handle );
struct pseudo_console *pseudo_console = handle;
TRACE( "%p\n", handle );
if (!pseudo_console) return;
if (pseudo_console->signal) CloseHandle( pseudo_console->signal );
if (pseudo_console->process)
{
WaitForSingleObject( pseudo_console->process, INFINITE );
CloseHandle( pseudo_console->process );
}
if (pseudo_console->reference) CloseHandle( pseudo_console->reference );
}
/******************************************************************************