]> git.eshelyaron.com Git - emacs.git/commitdiff
(dos_set_keyboard): Set up stack and flags before
authorEli Zaretskii <eliz@gnu.org>
Thu, 13 Aug 1998 10:09:28 +0000 (10:09 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 13 Aug 1998 10:09:28 +0000 (10:09 +0000)
calling _go32_dpmi_simulate_int.

src/msdos.c

index 31c3cc17850c1b29d158e4f8794efe8ef232f613..42374ad36570dcd4c2c5907a3977211b0263fa5a 100644 (file)
@@ -1284,6 +1284,7 @@ dos_set_keyboard (code, always)
      Note: calling Int 2Fh via int86 wedges the DOS box on some versions
      of Windows 9X!  So don't do that!  */
   regs.x.ax = 0xad80;
+  regs.x.ss = regs.x.sp = regs.x.flags = 0;
   _go32_dpmi_simulate_int (0x2f, &regs);
   if (regs.h.al == 0xff)
     international_keyboard = 1;