summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwfh <wfh@chromium.org>2015-11-07 14:40:29 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-07 22:41:19 +0000
commit67b3cb5374eb47fd6c20924b37141bf9ea5e79d2 (patch)
tree15d564b787b29b9f6ccab8bbee0fcd37001d0e43
parent5d655d28e567d236d897657250c2690f40d51ba0 (diff)
downloadchromium_src-67b3cb5374eb47fd6c20924b37141bf9ea5e79d2.zip
chromium_src-67b3cb5374eb47fd6c20924b37141bf9ea5e79d2.tar.gz
chromium_src-67b3cb5374eb47fd6c20924b37141bf9ea5e79d2.tar.bz2
Do not use FAILED macro for calls to RegKey::ReadValueDW.
BUG=552819 Review URL: https://codereview.chromium.org/1417483020 Cr-Commit-Position: refs/heads/master@{#358537}
-rw-r--r--chrome/common/chrome_content_client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index a38c255..d4d321c 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -330,7 +330,7 @@ bool IsSystemFlashScriptDebuggerPresent() {
base::win::RegKey path_key(HKEY_LOCAL_MACHINE, kFlashRegistryRoot, KEY_READ);
DWORD debug_value;
- if (FAILED(path_key.ReadValueDW(kIsDebuggerValueName, &debug_value)))
+ if (path_key.ReadValueDW(kIsDebuggerValueName, &debug_value) != ERROR_SUCCESS)
return false;
return (debug_value == 1);