Index: runtime/bin/file_win.cc |
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc |
index 8d45a177dec65a4935ba03d95d451d29f2cd6868..f487a889b885676dfbb79d73d280ce289b0ed7fa 100644 |
--- a/runtime/bin/file_win.cc |
+++ b/runtime/bin/file_win.cc |
@@ -38,7 +38,8 @@ class FileHandle { |
File::~File() { |
- if (!IsClosed()) { |
+ if (!IsClosed() && |
+ handle_->fd() != _fileno(stdout) && handle_->fd() != _fileno(stderr)) { |
Close(); |
} |
delete handle_; |