summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/channel_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/channel_info.cc')
-rw-r--r--chrome/installer/util/channel_info.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/installer/util/channel_info.cc b/chrome/installer/util/channel_info.cc
index f2bb28d..8e6665e 100644
--- a/chrome/installer/util/channel_info.cc
+++ b/chrome/installer/util/channel_info.cc
@@ -134,7 +134,9 @@ bool SetModifier(ModifierIndex index, bool set, std::wstring* ap_value) {
namespace installer {
bool ChannelInfo::Initialize(const RegKey& key) {
- return (key.ReadValue(google_update::kRegApField, &value_) == ERROR_SUCCESS);
+ LONG result = key.ReadValue(google_update::kRegApField, &value_);
+ return result == ERROR_SUCCESS || result == ERROR_FILE_NOT_FOUND ||
+ result == ERROR_INVALID_HANDLE;
}
bool ChannelInfo::Write(RegKey* key) const {