Index: chrome/installer/util/create_reg_key_work_item.cc |
=================================================================== |
--- chrome/installer/util/create_reg_key_work_item.cc (revision 71561) |
+++ chrome/installer/util/create_reg_key_work_item.cc (working copy) |
@@ -55,7 +55,7 @@ |
key_path.assign(key_list_[i - 1]); |
if (key.CreateWithDisposition(predefined_root_, key_path.c_str(), |
- &disposition, KEY_READ)) { |
+ &disposition, KEY_READ) == ERROR_SUCCESS) { |
if (disposition == REG_OPENED_EXISTING_KEY) { |
if (key_created_) { |
// This should not happen. Someone created a subkey under the key |