Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/engine/Main.cpp

Issue 29347417: Issue #3482 - Fallback to HKLM for preconfigured keys (Closed)
Patch Set: Created July 8, 2016, 5:22 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/engine/Main.cpp
===================================================================
--- a/src/engine/Main.cpp
+++ b/src/engine/Main.cpp
@@ -529,7 +529,15 @@
}
catch (const std::runtime_error&)
{
- return L"";
+ try
+ {
+ AdblockPlus::RegistryKey regKey(HKEY_LOCAL_MACHINE, L"Software\\AdblockPlus");
+ return regKey.value_wstring(preconfigName);
+ }
+ catch (const std::runtime_error&)
+ {
+ return L"";
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld