Index: sandbox/win/src/handle_policy.cc |
diff --git a/sandbox/win/src/handle_policy.cc b/sandbox/win/src/handle_policy.cc |
index 718376ecee16317a4f1f00e07d7f23cfbb9dc3f3..f5f1c273b969be0dc8fe207ce3765b7151ecf694 100644 |
--- a/sandbox/win/src/handle_policy.cc |
+++ b/sandbox/win/src/handle_policy.cc |
@@ -52,7 +52,6 @@ bool HandlePolicy::GenerateRules(const wchar_t* type_name, |
} |
DWORD HandlePolicy::DuplicateHandleProxyAction(EvalResult eval_result, |
- const ClientInfo& client_info, |
HANDLE source_handle, |
DWORD target_process_id, |
HANDLE* target_handle, |
@@ -81,7 +80,7 @@ DWORD HandlePolicy::DuplicateHandleProxyAction(EvalResult eval_result, |
HANDLE target_process = remote_target_process.IsValid() ? |
remote_target_process.Get() : ::GetCurrentProcess(); |
DWORD result = ERROR_SUCCESS; |
- if (!::DuplicateHandle(client_info.process, source_handle, target_process, |
+ if (!::DuplicateHandle(::GetCurrentProcess(), source_handle, target_process, |
target_handle, desired_access, FALSE, |
options)) { |
return ::GetLastError(); |