Index: chrome/installer/setup/uninstall.cc |
=================================================================== |
--- chrome/installer/setup/uninstall.cc (revision 71761) |
+++ chrome/installer/setup/uninstall.cc (working copy) |
@@ -181,7 +181,7 @@ |
ShellUtil::kRegShellOpen); |
RegKey key(HKEY_LOCAL_MACHINE, reg_key.c_str(), KEY_READ); |
std::wstring reg_exe; |
- if (key.ReadValue(L"", ®_exe) && reg_exe.length() > 2) { |
+ if (key.ReadValue(L"", ®_exe) == ERROR_SUCCESS && reg_exe.length() > 2) { |
FilePath chrome_exe(product.package().path() |
.Append(installer::kChromeExe)); |
// The path in the registry will always have quotes. |