Skip to content
Snippets Groups Projects
Commit a67d7164 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Added special handling for the stdio handles in CloseHandle.

parent ceeb6937
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment