| Index: sandbox/win/src/restricted_token_utils.cc
|
| diff --git a/sandbox/win/src/restricted_token_utils.cc b/sandbox/win/src/restricted_token_utils.cc
|
| index 5f1a246689c0a4b7c7316916205aab07deb92774..0866e5c0d4bbde87894d8bbfb3976f981fec0f94 100644
|
| --- a/sandbox/win/src/restricted_token_utils.cc
|
| +++ b/sandbox/win/src/restricted_token_utils.cc
|
| @@ -183,7 +183,7 @@ DWORD StartRestrictedProcessInJob(wchar_t *command_line,
|
|
|
| // Start the process
|
| STARTUPINFO startup_info = {0};
|
| - base::win::ScopedProcessInformation process_info;
|
| + PROCESS_INFORMATION temp_process_info = {};
|
| DWORD flags = CREATE_SUSPENDED;
|
|
|
| if (base::win::GetVersion() < base::win::VERSION_WIN8) {
|
| @@ -202,9 +202,12 @@ DWORD StartRestrictedProcessInJob(wchar_t *command_line,
|
| NULL, // Use the environment of the caller.
|
| NULL, // Use current directory of the caller.
|
| &startup_info,
|
| - process_info.Receive())) {
|
| + &temp_process_info)) {
|
| return ::GetLastError();
|
| }
|
| + base::win::ScopedProcessInformation process_info;
|
| + process_info.Set(temp_process_info);
|
| +
|
|
|
| // Change the token of the main thread of the new process for the
|
| // impersonation token with more rights.
|
|
|