| 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 f30a8a6f82eeaf6834cd73d31a5069b39f54d681..5f1a246689c0a4b7c7316916205aab07deb92774 100644
|
| --- a/sandbox/win/src/restricted_token_utils.cc
|
| +++ b/sandbox/win/src/restricted_token_utils.cc
|
| @@ -183,7 +183,7 @@
|
|
|
| // Start the process
|
| STARTUPINFO startup_info = {0};
|
| - PROCESS_INFORMATION temp_process_info = {};
|
| + base::win::ScopedProcessInformation process_info;
|
| DWORD flags = CREATE_SUSPENDED;
|
|
|
| if (base::win::GetVersion() < base::win::VERSION_WIN8) {
|
| @@ -202,10 +202,9 @@
|
| NULL, // Use the environment of the caller.
|
| NULL, // Use current directory of the caller.
|
| &startup_info,
|
| - &temp_process_info)) {
|
| + process_info.Receive())) {
|
| 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.
|
|
|