summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logging_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging_unittest.cc b/src/logging_unittest.cc
index e0e3676..b886222 100644
--- a/src/logging_unittest.cc
+++ b/src/logging_unittest.cc
@@ -628,7 +628,7 @@ static void GetFiles(const string& pattern, vector<string>* files) {
LOG(FATAL) << "No directory separator.";
}
const string dirname = pattern.substr(0, index + 1);
- if (FAILED(handle)) {
+ if (handle == INVALID_HANDLE_VALUE) {
// Finding no files is OK.
return;
}