diff options
Diffstat (limited to 'net/disk_cache/file_posix.cc')
-rw-r--r-- | net/disk_cache/file_posix.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc index 33866ea..842b4e7 100644 --- a/net/disk_cache/file_posix.cc +++ b/net/disk_cache/file_posix.cc @@ -42,7 +42,7 @@ OSFile File::os_file() const { bool File::IsValid() const { if (!init_) return false; - return (0 != os_file_); + return (INVALID_HANDLE_VALUE != os_file_); } bool File::Read(void* buffer, size_t buffer_len, size_t offset) { @@ -118,4 +118,3 @@ size_t File::GetLength() { } } // namespace disk_cache - |