Added special handling for the stdio handles in CloseHandle.

oldstable
Alexandre Julliard 1999-11-04 02:49:06 +00:00
parent ceeb69371c
commit a67d71648d
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ DEFAULT_DEBUG_CHANNEL(win32)
BOOL WINAPI CloseHandle( HANDLE handle )
{
struct close_handle_request *req = get_req_buffer();
/* stdio handles need special treatment */
if ((handle == STD_INPUT_HANDLE) ||
(handle == STD_OUTPUT_HANDLE) ||
(handle == STD_ERROR_HANDLE))
handle = GetStdHandle( handle );
req->handle = handle;
return !server_call( REQ_CLOSE_HANDLE );
}