diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-06-03 22:28:13 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-06-03 22:28:13 +0300 |
commit | 9337e20653c80e332555d109b945180cf41171fa (patch) | |
tree | c8aa352b0b5eeb3d9e23ebd571ed1bfefcafb925 /src/w32term.h | |
parent | 7f203aa1fde2bc9ec43aa05a939525cdab149832 (diff) |
Fix crashes in a text-mode session on Windows.
src/w32console.c (initialize_w32_display): Return the dimensions of
the console window via 2 additional arguments, not via the current
frame. This avoids crashes due to overrunning the bounds of
frame's decode_mode_spec_buffer, which is not resized following
the change of the frame dimensions from the initial 10x10.
src/w32term.h (w32_initialize_display_info): Adjust prototype.
src/term.c (init_tty): Take dimensions of the frame from the values
returned by initialize_w32_display.
Diffstat (limited to 'src/w32term.h')
-rw-r--r-- | src/w32term.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32term.h b/src/w32term.h index 9c27c09d03..be0b4a6f35 100644 --- a/src/w32term.h +++ b/src/w32term.h @@ -683,7 +683,7 @@ extern Lisp_Object w32_get_watch_object (void *); extern Lisp_Object lispy_file_action (DWORD); extern void w32_initialize_display_info (Lisp_Object); -extern void initialize_w32_display (struct terminal *); +extern void initialize_w32_display (struct terminal *, int *, int *); /* Keypad command key support. W32 doesn't have virtual keys defined for the function keys on the keypad (they are mapped to the standard |