Index: chrome/browser/ui/views/shell_dialogs_win.cc |
=================================================================== |
--- chrome/browser/ui/views/shell_dialogs_win.cc (revision 71761) |
+++ chrome/browser/ui/views/shell_dialogs_win.cc (working copy) |
@@ -75,9 +75,9 @@ |
DCHECK(reg_description); |
base::win::RegKey reg_ext(HKEY_CLASSES_ROOT, file_ext.c_str(), KEY_READ); |
std::wstring reg_app; |
- if (reg_ext.ReadValue(NULL, ®_app) && !reg_app.empty()) { |
+ if (reg_ext.ReadValue(NULL, ®_app) == ERROR_SUCCESS && !reg_app.empty()) { |
base::win::RegKey reg_link(HKEY_CLASSES_ROOT, reg_app.c_str(), KEY_READ); |
- if (reg_link.ReadValue(NULL, reg_description)) |
+ if (reg_link.ReadValue(NULL, reg_description) == ERROR_SUCCESS) |
return true; |
} |
return false; |