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

Unified Diff: net/dns/dns_config_service_win.cc

Issue 616173003: Allow Registry Iterator functions to use a specified WOW64 mode when iterating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: net/dns/dns_config_service_win.cc
diff --git a/net/dns/dns_config_service_win.cc b/net/dns/dns_config_service_win.cc
index 55a2825ff69bec7c202321a791e191e870cc5f96..36499994afeb6824cea09020a2903c4e07d63a21 100644
--- a/net/dns/dns_config_service_win.cc
+++ b/net/dns/dns_config_service_win.cc
@@ -211,7 +211,10 @@ ConfigParseWinResult ReadSystemSettings(DnsSystemSettings* settings) {
return CONFIG_PARSE_WIN_READ_PRIMARY_SUFFIX;
}
- base::win::RegistryKeyIterator nrpt_rules(HKEY_LOCAL_MACHINE, kNRPTPath);
+ // This registry key is "shared" between 32-bit and 64-bit hive so safe to
+ // access without any WOW64 access flag. See
+ // http://msdn.microsoft.com/en-us/library/windows/desktop/aa384253.aspx.
+ base::win::RegistryKeyIterator nrpt_rules(HKEY_LOCAL_MACHINE, kNRPTPath, 0);
settings->have_name_resolution_policy = (nrpt_rules.SubkeyCount() > 0);
return CONFIG_PARSE_WIN_OK;

Powered by Google App Engine
This is Rietveld 408576698