diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0d3c5cc8b..debee8b57 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2014-03-10 Christopher Faylor + + * fhandler.h (dev_console::b): Redefine as CONSOLE_SCREEN_BUFFER_INFO + for use with older OS. + * fhandler_console.cc (dev_console::fillin): Ditto for + GetConsoleScreenBufferInfo. + 2014-03-10 Christopher Faylor * fhandler_console.cc (dev_console::save_restore): Save entire line of diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 6d9a1b7e7..5e86f003c 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -1294,7 +1294,7 @@ class dev_console short Bottom; } scroll_region; - CONSOLE_SCREEN_BUFFER_INFOEX b; + CONSOLE_SCREEN_BUFFER_INFO b; COORD dwWinSize; COORD dwEnd; diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index ffbda4813..7a97fc461 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -733,8 +733,7 @@ dev_console::fillin (HANDLE h) { bool ret; - b.cbSize = sizeof (b); - if ((ret = GetConsoleScreenBufferInfoEx (h, &b))) + if ((ret = GetConsoleScreenBufferInfo (h, &b))) { dwWinSize.Y = 1 + b.srWindow.Bottom - b.srWindow.Top; dwWinSize.X = 1 + b.srWindow.Right - b.srWindow.Left;