cmd.exe: WCMD_for is only for files.
This commit is contained in:
parent
f76de3d002
commit
28ca9a8658
@ -654,7 +654,6 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
|
|||||||
WCHAR variable[4];
|
WCHAR variable[4];
|
||||||
WCHAR *firstCmd;
|
WCHAR *firstCmd;
|
||||||
int thisDepth;
|
int thisDepth;
|
||||||
BOOL isDirs = FALSE;
|
|
||||||
|
|
||||||
/* Check:
|
/* Check:
|
||||||
the first line includes the % variable name as first parm
|
the first line includes the % variable name as first parm
|
||||||
@ -730,8 +729,7 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
|
|||||||
if (hff != INVALID_HANDLE_VALUE) {
|
if (hff != INVALID_HANDLE_VALUE) {
|
||||||
do {
|
do {
|
||||||
BOOL isDirectory = (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
|
BOOL isDirectory = (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
|
||||||
if ((isDirs && isDirectory) ||
|
if (!isDirectory)
|
||||||
(!isDirs && !isDirectory))
|
|
||||||
{
|
{
|
||||||
thisCmdStart = cmdStart;
|
thisCmdStart = cmdStart;
|
||||||
WINE_TRACE("Processing FOR filename %s\n", wine_dbgstr_w(fd.cFileName));
|
WINE_TRACE("Processing FOR filename %s\n", wine_dbgstr_w(fd.cFileName));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user