mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 20:11:22 +00:00
Removed some code to make dir behave the same way as MS CMD. bug reported by irc::mikedep333
svn path=/trunk/; revision=18905
This commit is contained in:
parent
8f18130987
commit
04cc754e4d
1 changed files with 2 additions and 27 deletions
|
@ -240,7 +240,7 @@ DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & switches */
|
||||||
BOOL bPNegative; /* Negative switch parameter */
|
BOOL bPNegative; /* Negative switch parameter */
|
||||||
BOOL bIntoQuotes; /* A flag showing if we are in quotes (") */
|
BOOL bIntoQuotes; /* A flag showing if we are in quotes (") */
|
||||||
LPTSTR ptrLast; /* A pointer to the last character of param */
|
LPTSTR ptrLast; /* A pointer to the last character of param */
|
||||||
UINT t = 0;
|
|
||||||
|
|
||||||
|
|
||||||
/* Initialize variables; */
|
/* Initialize variables; */
|
||||||
|
@ -261,31 +261,6 @@ DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & switches */
|
||||||
lpFlags->stTimeField.bParSetted = TRUE;
|
lpFlags->stTimeField.bParSetted = TRUE;
|
||||||
|
|
||||||
|
|
||||||
/* Add correct handling of *. */
|
|
||||||
for(t=0;t<_tcslen(Line);t++)
|
|
||||||
{
|
|
||||||
static INT count=0;
|
|
||||||
|
|
||||||
if ((count==0) && (Line[t]==_T('*')))
|
|
||||||
count++;
|
|
||||||
|
|
||||||
else if ((count==1) && (Line[t]==_T('.')))
|
|
||||||
count++;
|
|
||||||
|
|
||||||
else if ((count==2) && (Line[t]==_T('*')))
|
|
||||||
count++;
|
|
||||||
|
|
||||||
else if (!_istspace(Line[t]))
|
|
||||||
{
|
|
||||||
if (count==2)
|
|
||||||
lpFlags->bWideListColSort = ! bNegative;
|
|
||||||
count=-1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Main Loop (see README_DIR.txt) */
|
/* Main Loop (see README_DIR.txt) */
|
||||||
/* scan the command line char per char, and we process its char */
|
/* scan the command line char per char, and we process its char */
|
||||||
while (*Line)
|
while (*Line)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue