| Index: sandbox/win/src/target_process.cc
|
| diff --git a/sandbox/win/src/target_process.cc b/sandbox/win/src/target_process.cc
|
| index a2d630c9452aa9f53d392a5b13c4c90e211cad05..9300ccee0765ce42c4865341209b5ce340cdd4d6 100644
|
| --- a/sandbox/win/src/target_process.cc
|
| +++ b/sandbox/win/src/target_process.cc
|
| @@ -131,7 +131,8 @@
|
| flags |= CREATE_BREAKAWAY_FROM_JOB;
|
| }
|
|
|
| - PROCESS_INFORMATION temp_process_info = {};
|
| + base::win::ScopedProcessInformation process_info;
|
| +
|
| if (!::CreateProcessAsUserW(lockdown_token_,
|
| exe_path,
|
| cmd_line.get(),
|
| @@ -142,10 +143,9 @@
|
| NULL, // Use the environment of the caller.
|
| NULL, // Use current directory of the caller.
|
| startup_info.startup_info(),
|
| - &temp_process_info)) {
|
| + process_info.Receive())) {
|
| return ::GetLastError();
|
| }
|
| - base::win::ScopedProcessInformation process_info(temp_process_info);
|
| lockdown_token_.Close();
|
|
|
| DWORD win_result = ERROR_SUCCESS;
|
|
|