Commit a67d7164 authored by Alexandre Julliard's avatar Alexandre Julliard

Added special handling for the stdio handles in CloseHandle.

parent ceeb6937
...@@ -19,6 +19,11 @@ DEFAULT_DEBUG_CHANNEL(win32) ...@@ -19,6 +19,11 @@ DEFAULT_DEBUG_CHANNEL(win32)
BOOL WINAPI CloseHandle( HANDLE handle ) BOOL WINAPI CloseHandle( HANDLE handle )
{ {
struct close_handle_request *req = get_req_buffer(); 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; req->handle = handle;
return !server_call( REQ_CLOSE_HANDLE ); return !server_call( REQ_CLOSE_HANDLE );
} }
......
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