Index: chrome/installer/util/channel_info.cc |
=================================================================== |
--- chrome/installer/util/channel_info.cc (revision 70414) |
+++ chrome/installer/util/channel_info.cc (working copy) |
@@ -63,11 +63,12 @@ |
} |
bool ChannelInfo::Initialize(const RegKey& key) { |
- return key.ReadValue(google_update::kRegApField, &value_); |
+ return key.ReadValue(google_update::kRegApField, &value_) == ERROR_SUCCESS; |
} |
bool ChannelInfo::Write(RegKey* key) const { |
- return key->WriteValue(google_update::kRegApField, value_.c_str()); |
+ LONG result = key->WriteValue(google_update::kRegApField, value_.c_str()); |
+ return result == ERROR_SUCCESS; |
} |
bool ChannelInfo::GetChannelName(std::wstring* channel_name) const { |