Index: minidump/minidump_file_writer.cc |
diff --git a/minidump/minidump_file_writer.cc b/minidump/minidump_file_writer.cc |
index ff3531918eb13f9e6681f6c65e51b1669ef70165..2b13433ab956f69bb082c7ea11878c1f92e210ee 100644 |
--- a/minidump/minidump_file_writer.cc |
+++ b/minidump/minidump_file_writer.cc |
@@ -173,7 +173,7 @@ bool MinidumpFileWriter::WriteEverything(FileWriterInterface* file_writer) { |
// Seek back to the end of the file, in case some non-minidump content will be |
// written to the file after the minidump content. |
- return file_writer->Seek(end_offset, SEEK_SET); |
+ return file_writer->Seek(end_offset, SEEK_SET) >= 0; |
} |
bool MinidumpFileWriter::Freeze() { |