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:
parent
8fc782f561
commit
96e805369a
1 changed files with 4 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue