diff --git a/reactos/subsys/system/cmd/dir.c b/reactos/subsys/system/cmd/dir.c index 71c6e24875d..9df9c82d805 100644 --- a/reactos/subsys/system/cmd/dir.c +++ b/reactos/subsys/system/cmd/dir.c @@ -1,4 +1,4 @@ -/* $Id: dir.c,v 1.6 2004/01/16 19:57:13 weiden Exp $ +/* $Id: dir.c,v 1.7 2004/01/16 19:58:47 weiden Exp $ * * DIR.C - dir internal command. * @@ -969,7 +969,8 @@ DirList (LPTSTR szPath, LPTSTR szFilespec, LPINT pLine, DWORD dwFlags) if (file.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) { ConOutPrintf (_T(" ")); - dircount++; + if (file.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) + dircount++; } else if (file.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {