diff --git a/test/posix-test.cc b/test/posix-test.cc index e1690841..d4f0ddf3 100644 --- a/test/posix-test.cc +++ b/test/posix-test.cc @@ -108,7 +108,7 @@ static LONGLONG max_file_size() { return std::numeric_limits::max(); } DWORD test::GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh) { if (fstat_sim == ERROR) { SetLastError(ERROR_ACCESS_DENIED); - return FALSE; + return INVALID_FILE_SIZE; } if (fstat_sim == MAX_SIZE) { DWORD max = std::numeric_limits::max();