diff --git a/src/logging_unittest.cc b/src/logging_unittest.cc index ddd434f12..8259546fd 100644 --- a/src/logging_unittest.cc +++ b/src/logging_unittest.cc @@ -725,7 +725,7 @@ static void GetFiles(const string& pattern, vector* files) { files->push_back(dirname + data.cFileName); } while (FindNextFileA(handle, &data)); BOOL result = FindClose(handle); - LOG_SYSRESULT(result != 0); + LOG_SYSRESULT(GetLastError()); #else # error There is no way to do glob. #endif