Commit 28ca9a86 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

cmd.exe: WCMD_for is only for files.

parent f76de3d0
...@@ -654,7 +654,6 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) { ...@@ -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) { ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment