From b42099b9ecc08d1f6c621508aa1131373d043b6d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 13 Aug 1998 10:09:28 +0000 Subject: [PATCH] (dos_set_keyboard): Set up stack and flags before calling _go32_dpmi_simulate_int. --- src/msdos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msdos.c b/src/msdos.c index 31c3cc17850..42374ad3657 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -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, ®s); if (regs.h.al == 0xff) international_keyboard = 1; -- 2.39.5