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:
parent
c5d76925bb
commit
f214d70367
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue