From d0ea228182c3791f8ba9a84c94298fce7c3af361 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 20 Jul 2005 15:27:20 +0000 Subject: [PATCH] Fix bug 1241198 (if cond set a=b didn't work because a single = wasn't allowed without errorlevel) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2243 --- src/shell/shell_cmds.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 897eacd5..3fa83a94 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell_cmds.cpp,v 1.54 2005-04-21 21:17:46 qbix79 Exp $ */ +/* $Id: shell_cmds.cpp,v 1.55 2005-07-20 15:27:20 qbix79 Exp $ */ #include #include @@ -551,7 +551,11 @@ void DOS_Shell::CMD_IF(char * args) { *comp++ = ' '; while(*comp++ == ' ') ; /*nothing */ - } else {SyntaxError();return;} + } else if(strncasecmp(args," set ",5) !=0) { + /* if cond set a=b is allowed as well */ + SyntaxError(); + return; + } }; char * word=StripWord(args); if (strcasecmp(word,"NOT")==0) {