Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Unified Diff: runtime/bin/file_win.cc

Issue 9839053: Add error handling to random access file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/file_win.cc
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
index e1737b9efa6b6d68a8365207b915a63294f7d1b7..e5f7206b5dc5799576335c233611fd8630ec53a4 100644
--- a/runtime/bin/file_win.cc
+++ b/runtime/bin/file_win.cc
@@ -82,9 +82,9 @@ bool File::Truncate(int64_t length) {
}
-void File::Flush() {
+bool File::Flush() {
ASSERT(handle_->fd());
- _commit(handle_->fd());
+ return _commit(handle_->fd()) != -1;
}

Powered by Google App Engine
This is Rietveld 408576698