Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1647)

Unified Diff: chrome/installer/util/installer_state.cc

Issue 300593002: Make omaha, gcapi and uninstall registry accesses use Wow6432Node on 64-bit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/installation_state.cc ('k') | chrome/installer/util/product.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installer_state.cc
diff --git a/chrome/installer/util/installer_state.cc b/chrome/installer/util/installer_state.cc
index e6cc475e5e40ad3bb44ecda8127bea74dbe3fac6..04349067162415559e606f30ca71a2c5065f8a0f 100644
--- a/chrome/installer/util/installer_state.cc
+++ b/chrome/installer/util/installer_state.cc
@@ -742,8 +742,10 @@ void InstallerState::UpdateChannels() const {
// Create the app's ClientState key if it doesn't exist.
ChannelInfo channel_info;
base::win::RegKey state_key;
- LONG result = state_key.Create(root_key_, state_key_.c_str(),
- KEY_QUERY_VALUE | KEY_SET_VALUE);
+ LONG result =
+ state_key.Create(root_key_,
+ state_key_.c_str(),
+ KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_WOW64_32KEY);
if (result == ERROR_SUCCESS) {
channel_info.Initialize(state_key);
@@ -782,8 +784,10 @@ void InstallerState::UpdateChannels() const {
continue;
dist = product->distribution();
}
- result = state_key.Create(root_key_, dist->GetStateKey().c_str(),
- KEY_QUERY_VALUE | KEY_SET_VALUE);
+ result =
+ state_key.Create(root_key_,
+ dist->GetStateKey().c_str(),
+ KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_WOW64_32KEY);
if (result == ERROR_SUCCESS) {
other_info.Initialize(state_key);
if (!other_info.Equals(channel_info))
« no previous file with comments | « chrome/installer/util/installation_state.cc ('k') | chrome/installer/util/product.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698