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

Unified Diff: ui/gfx/font_fallback_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: ui/gfx/font_fallback_win.cc
diff --git a/ui/gfx/font_fallback_win.cc b/ui/gfx/font_fallback_win.cc
index 2e1959b1e802ff8a17ad16b9288209c937cc3e8f..14be83cc95f87e9f95c0abca7d0171c28432f637 100644
--- a/ui/gfx/font_fallback_win.cc
+++ b/ui/gfx/font_fallback_win.cc
@@ -25,7 +25,10 @@ void QueryFontsFromRegistry(std::map<std::string, std::string>* map) {
const wchar_t* kFonts =
L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts";
- base::win::RegistryValueIterator it(HKEY_LOCAL_MACHINE, kFonts);
+ // 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::RegistryValueIterator it(HKEY_LOCAL_MACHINE, kFonts, 0);
for (; it.Valid(); ++it) {
const std::string filename =
base::StringToLowerASCII(base::WideToUTF8(it.Value()));
« chrome/installer/util/app_commands.cc ('K') | « rlz/win/lib/rlz_value_store_registry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698