summaryrefslogtreecommitdiffstats
path: root/base/win
diff options
context:
space:
mode:
authorwfh <wfh@chromium.org>2015-11-07 17:28:12 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-08 01:29:31 +0000
commit0106e70bb95f7f3e561452a24d7b10b23ed45e42 (patch)
tree06bb2eef98d88a769113a493b61b7a47eda29b69 /base/win
parent2c1247e27b0f29e9a5b8402dd06223b01a8474a3 (diff)
downloadchromium_src-0106e70bb95f7f3e561452a24d7b10b23ed45e42.zip
chromium_src-0106e70bb95f7f3e561452a24d7b10b23ed45e42.tar.gz
chromium_src-0106e70bb95f7f3e561452a24d7b10b23ed45e42.tar.bz2
Do not use FAILED macro when checking return value for Registry APIs.
BUG=552819 Review URL: https://codereview.chromium.org/1426673011 Cr-Commit-Position: refs/heads/master@{#358543}
Diffstat (limited to 'base/win')
-rw-r--r--base/win/registry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/win/registry.cc b/base/win/registry.cc
index 28e0461..ea96e67 100644
--- a/base/win/registry.cc
+++ b/base/win/registry.cc
@@ -364,7 +364,7 @@ LONG RegKey::ReadValues(const wchar_t* name,
DWORD type = REG_MULTI_SZ;
DWORD size = 0;
LONG result = ReadValue(name, NULL, &size, &type);
- if (FAILED(result) || size == 0)
+ if (result != ERROR_SUCCESS || size == 0)
return result;
if (type != REG_MULTI_SZ)
@@ -372,7 +372,7 @@ LONG RegKey::ReadValues(const wchar_t* name,
std::vector<wchar_t> buffer(size / sizeof(wchar_t));
result = ReadValue(name, &buffer[0], &size, NULL);
- if (FAILED(result) || size == 0)
+ if (result != ERROR_SUCCESS || size == 0)
return result;
// Parse the double-null-terminated list of strings.