Index: chrome/installer/mini_installer/regkey.cc |
diff --git a/chrome/installer/mini_installer/regkey.cc b/chrome/installer/mini_installer/regkey.cc |
index ca95507b171caf2132afa4305d5da3979488af58..c8fd6c0a01c90acddf221f0a03b7d82ec88872c2 100644 |
--- a/chrome/installer/mini_installer/regkey.cc |
+++ b/chrome/installer/mini_installer/regkey.cc |
@@ -25,7 +25,7 @@ LONG RegKey::ReadSZValue(const wchar_t* value_name, |
if (result == ERROR_SUCCESS) { |
if (type != REG_SZ) { |
result = ERROR_NOT_SUPPORTED; |
- } else if (byte_length == 0) { |
+ } else if (byte_length < 2) { |
*value = L'\0'; |
} else if (value[byte_length/sizeof(wchar_t) - 1] != L'\0') { |
if ((byte_length / sizeof(wchar_t)) < value_size) |