1
0
Fork 0

Update CALLBACK_Idle to use the callback offset. Fixes memory corruption.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3694
This commit is contained in:
Peter Veenstra 2011-04-16 12:23:57 +00:00
parent c5d76925bb
commit f214d70367

View file

@ -65,7 +65,7 @@ void CALLBACK_Idle(void) {
Bit16u oldcs=SegValue(cs);
Bit32u oldeip=reg_eip;
SegSet16(cs,CB_SEG);
reg_eip=call_idle*CB_SIZE;
reg_eip=CB_SOFFSET+call_idle*CB_SIZE;
DOSBOX_RunMachine();
reg_eip=oldeip;
SegSet16(cs,oldcs);