Index: runtime/bin/stdio_win.cc |
diff --git a/runtime/bin/stdio_win.cc b/runtime/bin/stdio_win.cc |
index 86fd939f4255c3c94709fa12bb731e5f3d18abfd..24ceb325cab4ca19dbbeea10c791d32d4c4bc69a 100644 |
--- a/runtime/bin/stdio_win.cc |
+++ b/runtime/bin/stdio_win.cc |
@@ -65,13 +65,8 @@ void Stdin::SetLineMode(bool enabled) { |
} |
-bool Stdout::GetTerminalSize(int fd, int size[2]) { |
- HANDLE h; |
- if (fd == 1) { |
- h = GetStdHandle(STD_OUTPUT_HANDLE); |
- } else { |
- h = GetStdHandle(STD_ERROR_HANDLE); |
- } |
+bool Stdout::GetTerminalSize(int size[2]) { |
+ HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); |
CONSOLE_SCREEN_BUFFER_INFO info; |
if (!GetConsoleScreenBufferInfo(h, &info)) return false; |
size[0] = info.srWindow.Right - info.srWindow.Left + 1; |