Subject: bug#8596: 24.0.50; crash when use C-x 5 2 with emacs -nw -Q

From: Eli Zaretskii <[email-masked]>
Date: Sun, 01 May 2011 06:03:50 +0300

> From: Juanma Barranquero <[email-masked]>
> Date: Sun, 1 May 2011 00:14:47 +0200
> Cc: [email-masked], [email-masked]
> 
> On Sat, Apr 30, 2011 at 23:30, Juanma Barranquero <[email-masked]> wrote:
> 
> > But, I cannot find the oldest Windows release supporting
> > GetConsoleScreenBufferInfo. Most online references do not go farther
> > than the oldest supported release, Windows 2K.
> 
> According to this "reference"
> (http://winapi.freetechsecrets.com/win32/WIN32GetConsoleScreenBufferInfo.htm)
> it existed in W95 and NT 3.1.

Yes, it's available in all versions of Windows.

> But, as for the bug... why does not happen on emacs-23?  There,
> matrix_dim is 10x10, not 10x11 as in the trunk.

Are you saying that before this line:

  /* Add in menu bar lines, if any.  */
  matrix_dim.height += top_window_y;

matrix_dim.height is 9?  Or maybe top_window_y is zero?