From 0f5b19ac6d75ee2ffb554c616cd8e41f617132a8 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 28 Apr 2011 14:07:17 +0000 Subject: [PATCH] Improve wildcard handling with directories in copy for FA CD installer (ripsaw) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3703 --- src/shell/shell_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index e34513d4..f6c56246 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -603,7 +603,7 @@ void DOS_Shell::CMD_COPY(char * args) { if (!has_drive_spec) { if (DOS_FindFirst(source_p,0xffff & ~DOS_ATTR_VOLUME)) { dta.GetResult(name,size,date,time,attr); - if (attr & DOS_ATTR_DIRECTORY && !strstr(source_p,"*.*")) + if (attr & DOS_ATTR_DIRECTORY && !strpbrk(source_p,"*?") ) strcat(source_x,"\\*.*"); } }