Index: base/platform_file_win.cc |
diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc |
index 977a819fcfa70eef7cde008a4909324071700a26..c5b49fa7e88ef1fea45c049e12822837b5c44f7e 100644 |
--- a/base/platform_file_win.cc |
+++ b/base/platform_file_win.cc |
@@ -121,7 +121,7 @@ int64 SeekPlatformFile(PlatformFile file, |
PlatformFileWhence whence, |
int64 offset) { |
base::ThreadRestrictions::AssertIOAllowed(); |
- if (file < 0 || offset < 0) |
+ if (file == kInvalidPlatformFileValue || offset < 0) |
return -1; |
LARGE_INTEGER distance, res; |