Fix File truncate on Windows.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//76283002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30406 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ajohnsen@google.com
2013-11-19 12:32:29 +00:00
parent d444060c32
commit b76897eb00
+1 -1
View File
@@ -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;
}