Avoid a null-pointer dereference which occurred when emulating DOS

interrupt 0x10 function 0x00 without dpy int tty.c being set.

PR:		35147
Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
This commit is contained in:
robert 2002-02-26 10:22:25 +00:00
parent a3d5207088
commit 6ec282a1de

View File

@ -56,6 +56,8 @@ int10(regcontext_t *REGS)
switch (R_AH) {
case 0x00: /* Set display mode */
if (!xmode)
goto unsupported;
init_mode(R_AL);
break;
case 0x01: /* Define cursor */