Commit 6d96e301 authored by Alexandre Julliard's avatar Alexandre Julliard Committed by Alexandre Julliard

ConvertToGlobalHandle: fixed handle leak.

parent 790743c8
......@@ -89,7 +89,7 @@ HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc)
req->dst_process = -1;
req->access = 0;
req->inherit = FALSE;
req->options = DUP_HANDLE_MAKE_GLOBAL | DUP_HANDLE_SAME_ACCESS;
req->options = DUP_HANDLE_MAKE_GLOBAL | DUP_HANDLE_SAME_ACCESS | DUP_HANDLE_CLOSE_SOURCE;
server_call( REQ_DUP_HANDLE );
return req->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