Index: runtime/bin/file_win.cc |
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc |
index 0b63b3d2acfd8a3dead45589caff00491faadfea..4c3c853d5c50b60efbc9c8586d3f2ef0df91cab0 100644 |
--- a/runtime/bin/file_win.cc |
+++ b/runtime/bin/file_win.cc |
@@ -86,7 +86,7 @@ bool File::SetPosition(off64_t position) { |
bool File::Truncate(off64_t length) { |
ASSERT(handle_->fd() >= 0); |
- return (_chsize_s(handle_->fd(), length) != -1); |
+ return _chsize_s(handle_->fd(), length) == 0; |
} |