From 96e805369a1d19966968bd71ebc8c4423cdbd730 Mon Sep 17 00:00:00 2001 From: ripsaw8080 Date: Mon, 23 May 2016 11:39:01 +0000 Subject: [PATCH] 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 --- src/debug/debug.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index b66d7c1e..2a54c3b5 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -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;