Index: sandbox/win/src/target_process.cc |
=================================================================== |
--- sandbox/win/src/target_process.cc (revision 237598) |
+++ sandbox/win/src/target_process.cc (working copy) |
@@ -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; |