From 3a88d6f1f6e659c7e1eeff5da208ccac3acc09cb Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 30 Nov 2002 11:52:56 +0000 Subject: [PATCH] Remove the previous wait event before starting a new one. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@549 --- src/ints/bios.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ints/bios.cpp b/src/ints/bios.cpp index fcd08405..206c34b6 100644 --- a/src/ints/bios.cpp +++ b/src/ints/bios.cpp @@ -169,6 +169,7 @@ static Bitu INT15_Handler(void) { mem_writed(BIOS_WAIT_FLAG_POINTER,RealMake(SegValue(es),reg_bx)); mem_writed(BIOS_WAIT_FLAG_COUNT,reg_cx<<16|reg_dx); mem_writeb(BIOS_WAIT_FLAG_ACTIVE,1); + PIC_RemoveEvents(&WaitFlagEvent); PIC_AddEvent(&WaitFlagEvent,reg_cx<<16|reg_dx); break; case 0x84: /* BIOS - JOYSTICK SUPPORT (XT after 11/8/82,AT,XT286,PS) */