Commit 0ec191eb authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernelbase: Add ClosePseudoConsole implementation.

parent 7ea9f9ed
...@@ -1704,7 +1704,18 @@ HRESULT WINAPI CreatePseudoConsole( COORD size, HANDLE input, HANDLE output, DWO ...@@ -1704,7 +1704,18 @@ HRESULT WINAPI CreatePseudoConsole( COORD size, HANDLE input, HANDLE output, DWO
*/ */
void WINAPI ClosePseudoConsole( HPCON handle ) 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 );
} }
/****************************************************************************** /******************************************************************************
......
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