Cygwin: console: Revive Win7 compatibility.

- The commit fca4cda7a4 broke Win7
  compatibility. This patch fixes the issue.
This commit is contained in:
Takashi Yano
2019-09-19 05:49:55 +09:00
committed by Ken Brown
parent bbc625da81
commit 1a44ad03e0
3 changed files with 6 additions and 7 deletions

View File

@@ -1209,7 +1209,6 @@ peek_pty_slave (select_record *s, bool from_select)
{
if (ptys->is_line_input ())
{
#define INREC_SIZE (65536 / sizeof (INPUT_RECORD))
INPUT_RECORD inp[INREC_SIZE];
DWORD n;
PeekConsoleInput (ptys->get_handle (), inp, INREC_SIZE, &n);