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

Unified Diff: chrome/common/chrome_plugin_lib.cc

Issue 6090006: Regkey functions return error code instead of bool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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: chrome/common/chrome_plugin_lib.cc
===================================================================
--- chrome/common/chrome_plugin_lib.cc (revision 70414)
+++ chrome/common/chrome_plugin_lib.cc (working copy)
@@ -154,10 +154,10 @@
base::win::RegKey key(HKEY_CURRENT_USER, reg_path.c_str());
DWORD is_persistent;
- if (key.ReadValueDW(kRegistryLoadOnStartup, &is_persistent) &&
- is_persistent) {
+ LONG result = key.ReadValueDW(kRegistryLoadOnStartup, &is_persistent);
+ if (result == ERROR_SUCCESS && is_persistent) {
std::wstring path;
- if (key.ReadValue(kRegistryPath, &path)) {
+ if (key.ReadValue(kRegistryPath, &path) == ERROR_SUCCESS) {
ChromePluginLib::Create(path, bfuncs);
}
}

Powered by Google App Engine
This is Rietveld 408576698