cmd.exe: WCMD_for is only for files.

This commit is contained in:
Marcus Meissner 2007-08-12 21:22:41 +02:00 committed by Alexandre Julliard
parent f76de3d002
commit 28ca9a8658
1 changed files with 1 additions and 3 deletions

View File

@ -654,7 +654,6 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
WCHAR variable[4];
WCHAR *firstCmd;
int thisDepth;
BOOL isDirs = FALSE;
/* Check:
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) {
do {
BOOL isDirectory = (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
if ((isDirs && isDirectory) ||
(!isDirs && !isDirectory))
if (!isDirectory)
{
thisCmdStart = cmdStart;
WINE_TRACE("Processing FOR filename %s\n", wine_dbgstr_w(fd.cFileName));