| Index: sandbox/src/Wow64.cc
|
| ===================================================================
|
| --- sandbox/src/Wow64.cc (revision 140102)
|
| +++ sandbox/src/Wow64.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -8,7 +8,6 @@
|
|
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "base/win/scoped_process_information.h"
|
| #include "base/win/windows_version.h"
|
| #include "sandbox/src/target_process.h"
|
|
|
| @@ -157,17 +156,19 @@
|
|
|
| STARTUPINFO startup_info = {0};
|
| startup_info.cb = sizeof(startup_info);
|
| - base::win::ScopedProcessInformation process_info;
|
| + PROCESS_INFORMATION process_info;
|
| if (!::CreateProcess(NULL, writable_command.get(), NULL, NULL, FALSE, 0, NULL,
|
| - NULL, &startup_info, process_info.Receive()))
|
| + NULL, &startup_info, &process_info))
|
| return false;
|
|
|
| - DWORD reason = ::WaitForSingleObject(process_info.process_handle(), INFINITE);
|
| + DWORD reason = ::WaitForSingleObject(process_info.hProcess, INFINITE);
|
|
|
| DWORD code;
|
| - bool ok =
|
| - ::GetExitCodeProcess(process_info.process_handle(), &code) ? true : false;
|
| + bool ok = ::GetExitCodeProcess(process_info.hProcess, &code) ? true : false;
|
|
|
| + ::CloseHandle(process_info.hProcess);
|
| + ::CloseHandle(process_info.hThread);
|
| +
|
| if (WAIT_TIMEOUT == reason)
|
| return false;
|
|
|
|
|