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

Unified Diff: base/win/registry.cc

Issue 334973003: Fix issue where OpenKey() would call Close() and reset the wow64_access to 0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | base/win/registry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/registry.cc
diff --git a/base/win/registry.cc b/base/win/registry.cc
index deae10fbe95a69f2485e4275c24fd98f6ae35ef3..694652e1f791d03ad6c00b8cd01a993e4e620369 100644
--- a/base/win/registry.cc
+++ b/base/win/registry.cc
@@ -105,6 +105,7 @@ LONG RegKey::CreateKey(const wchar_t* name, REGSAM access) {
if (result == ERROR_SUCCESS) {
Close();
key_ = subkey;
+ wow64access_ = access & kWow64AccessMask;
}
return result;
@@ -143,6 +144,7 @@ LONG RegKey::OpenKey(const wchar_t* relative_key_name, REGSAM access) {
if (result == ERROR_SUCCESS) {
Close();
key_ = subkey;
+ wow64access_ = access & kWow64AccessMask;
}
return result;
}
« no previous file with comments | « no previous file | base/win/registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698