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); |
} |
} |