1
0
Fork 0

Fix the debug launcher internal program's tendency to cause crashes.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3985
This commit is contained in:
ripsaw8080 2016-05-23 11:39:01 +00:00
parent 8fc782f561
commit 96e805369a

View file

@ -2093,17 +2093,10 @@ public:
Bit16u oldss = SegValue(ss);
Bit32u oldesp = reg_esp;
// Workaround : Allocate Stack Space
Bit16u segment;
Bit16u size = 0x200 / 0x10;
if (DOS_AllocateMemory(&segment,&size)) {
SegSet16(ss,segment);
reg_sp = 0x200;
// Start shell
DOS_Shell shell;
shell.Execute(filename,args);
DOS_FreeMemory(segment);
}
// Start shell
DOS_Shell shell;
shell.Execute(filename,args);
// set old reg values
SegSet16(ss,oldss);
reg_esp = oldesp;