From 74f0e5290c531907ba1552291a74698b302218b1 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 1 Apr 2004 13:00:05 +0000 Subject: [PATCH] exist searched for too much Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1753 --- src/shell/shell_cmds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 8d5267a5..a9eb3f9b 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.39 2004-03-10 14:08:18 qbix79 Exp $ */ +/* $Id: shell_cmds.cpp,v 1.40 2004-04-01 13:00:05 qbix79 Exp $ */ #include @@ -502,7 +502,7 @@ void DOS_Shell::CMD_IF(char * args) { return; }; - if (DOS_FindFirst(word,0xFFFF)==(!has_not)) DoCommand(args); + if (DOS_FindFirst(word,0xffff & ~DOS_ATTR_VOLUME)==(!has_not)) DoCommand(args); return; } if (strcasecmp(word,"ERRORLEVEL")==0) {