summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run/upgrade_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/first_run/upgrade_util_win.cc')
-rw-r--r--chrome/browser/first_run/upgrade_util_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/first_run/upgrade_util_win.cc b/chrome/browser/first_run/upgrade_util_win.cc
index 244773f..729bfcb 100644
--- a/chrome/browser/first_run/upgrade_util_win.cc
+++ b/chrome/browser/first_run/upgrade_util_win.cc
@@ -252,13 +252,14 @@ bool SwapNewChromeExeIfPresent() {
std::wstring rename_cmd;
if (key.ReadValue(google_update::kRegRenameCmdField,
&rename_cmd) == ERROR_SUCCESS) {
- base::win::ScopedHandle handle;
+ base::ProcessHandle handle;
base::LaunchOptions options;
options.wait = true;
options.start_hidden = true;
if (base::LaunchProcess(rename_cmd, options, &handle)) {
DWORD exit_code;
::GetExitCodeProcess(handle, &exit_code);
+ ::CloseHandle(handle);
if (exit_code == installer::RENAME_SUCCESSFUL)
return true;
}