]> git.eshelyaron.com Git - emacs.git/commit
Fix the MSDOS build when running under CWSDPMI
authorEli Zaretskii <eliz@gnu.org>
Mon, 15 Apr 2019 15:05:52 +0000 (18:05 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 15 Apr 2019 15:05:52 +0000 (18:05 +0300)
commit70ec3928666353b69efae1bdc831d704fa505e72
treeb84519a00dbfbe4943fd19d0f6d5aff58d0ddd19
parent7a608fc6f3ded3e615e7accb29f16bfd290d80a1
Fix the MSDOS build when running under CWSDPMI

* src/msdos.c (the_only_tty_output): Define.
* src/msdos.h (the_only_tty_output): Declare.
* src/frame.c (make_terminal_frame) [MSDOS]:
* src/dispnew.c (init_display) [MSDOS]: Set up
f->output_data.tty pointer using the_only_tty_output, before
dereferencing the pointer.  This prevents crashes with DPMI
servers that provide NULL pointer protection.
src/dispnew.c
src/frame.c
src/msdos.c
src/msdos.h