| Index: content/common/sandbox_util.cc
|
| diff --git a/content/common/sandbox_util.cc b/content/common/sandbox_util.cc
|
| index 4b1dcef4a9124b3b8a905ad6301886ae55a6d9a3..eea8486ca1d52506265812eda4eb5ddec4841cc4 100644
|
| --- a/content/common/sandbox_util.cc
|
| +++ b/content/common/sandbox_util.cc
|
| @@ -22,8 +22,11 @@ IPC::PlatformFileForTransit BrokerGetFileHandleForProcess(
|
| DWORD options = DUPLICATE_SAME_ACCESS;
|
| if (should_close_source)
|
| options |= DUPLICATE_CLOSE_SOURCE;
|
| - if (!content::BrokerDuplicateHandle(handle, target_process_id, &out_handle,
|
| - 0, options)) {
|
| + HANDLE raw_handle = INVALID_HANDLE_VALUE;
|
| + if (content::BrokerDuplicateHandle(handle, target_process_id, &raw_handle, 0,
|
| + options)) {
|
| + out_handle = IPC::PlatformFileForTransit(raw_handle, target_process_id);
|
| + } else {
|
| out_handle = IPC::InvalidPlatformFileForTransit();
|
| }
|
| #elif defined(OS_POSIX)
|
|
|