From 4199f0d4838da2ae66a9624807bd4cec1b8bfcf3 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 8 Sep 2003 18:22:57 +0000 Subject: [PATCH] Added Call support to the execute function. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1237 --- src/shell/shell_misc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell/shell_misc.cpp b/src/shell/shell_misc.cpp index 4f06cb34..c546352e 100644 --- a/src/shell/shell_misc.cpp +++ b/src/shell/shell_misc.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell_misc.cpp,v 1.23 2003-09-01 18:19:55 qbix79 Exp $ */ +/* $Id: shell_misc.cpp,v 1.24 2003-09-08 18:22:57 qbix79 Exp $ */ #include #include @@ -305,6 +305,8 @@ void DOS_Shell::Execute(char * name,char * args) { } if (strcasecmp(extension, ".bat") == 0) { /* Run the .bat file */ + /* delete old batch file if call is not active*/ + if(bf && !call) delete bf; bf=new BatchFile(this,fullname,line); } else