| 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..f30a8a6f82eeaf6834cd73d31a5069b39f54d681 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,10 @@ 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(temp_process_info);
|
|
|
| // Change the token of the main thread of the new process for the
|
| // impersonation token with more rights.
|
|
|