1
0
Fork 0

fixed bug in delete. (Slor)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1310
This commit is contained in:
Peter Veenstra 2003-10-11 12:16:35 +00:00
parent a870f5d6cf
commit b79e8b1a52

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: shell_cmds.cpp,v 1.28 2003-09-24 19:36:14 qbix79 Exp $ */
/* $Id: shell_cmds.cpp,v 1.29 2003-10-11 12:16:35 qbix79 Exp $ */
#include <string.h>
@ -110,7 +110,7 @@ void DOS_Shell::CMD_DELETE(char * args) {
StripSpaces(args);
if (!DOS_Canonicalize(args,full)) { WriteOut(MSG_Get("SHELL_ILLEGAL_PATH"));return; }
//TODO Maybe support confirmation for *.* like dos does.
bool res=DOS_FindFirst(args,0xff);
bool res=DOS_FindFirst(args,0xffff & ~DOS_ATTR_VOLUME);
if (!res) {
WriteOut(MSG_Get("SHELL_CMD_DEL_ERROR"),args);return;
}
@ -564,4 +564,5 @@ void DOS_Shell::CMD_CALL(char * args){
this->call=true; /* else the old batchfile will be closed first */
this->ParseLine(args);
this->call=false;
}
}