Index: base/files/file_win.cc |
diff --git a/base/files/file_win.cc b/base/files/file_win.cc |
index 1e13381e255f00be678f0c224b933b729bd47ab8..d037989c2d7777ef7fe6d448b7547e63cdba3a49 100644 |
--- a/base/files/file_win.cc |
+++ b/base/files/file_win.cc |
@@ -13,6 +13,11 @@ |
namespace base { |
+// Make sure our Whence mappings match the system headers. |
+COMPILE_ASSERT(File::FROM_BEGIN == FILE_BEGIN && |
+ File::FROM_CURRENT == FILE_CURRENT && |
+ File::FROM_END == FILE_END, whence_matches_system); |
+ |
void File::InitializeUnsafe(const FilePath& name, uint32 flags) { |
base::ThreadRestrictions::AssertIOAllowed(); |
DCHECK(!IsValid()); |
@@ -118,8 +123,6 @@ void File::Close() { |
int64 File::Seek(Whence whence, int64 offset) { |
base::ThreadRestrictions::AssertIOAllowed(); |
DCHECK(IsValid()); |
- if (offset < 0) |
- return -1; |
LARGE_INTEGER distance, res; |
distance.QuadPart = offset; |