mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fix debug output
remove my '!' code - don't know how I thought this was valid restore part of code I removed previously that was breaking 'not' cases that need to execute and the right half of the == was longer than then left svn path=/trunk/; revision=17957
This commit is contained in:
parent
7e3c246bc2
commit
d6475d7b86
1 changed files with 7 additions and 10 deletions
|
@ -43,7 +43,7 @@ INT cmd_if (LPTSTR cmd, LPTSTR param)
|
|||
LPTSTR pp;
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("cmd_if: (\'%S\', \'%S\')\n"), cmd, param);
|
||||
DebugPrintf (_T("cmd_if: (\'%s\', \'%s\')\n"), cmd, param);
|
||||
#endif
|
||||
|
||||
if (!_tcsncmp (param, _T("/?"), 2))
|
||||
|
@ -52,15 +52,8 @@ INT cmd_if (LPTSTR cmd, LPTSTR param)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* First check if param string begins with '!' or 'not' */
|
||||
if ( param[0] == _T('!') )
|
||||
{
|
||||
x_flag = X_EXEC; /* Remember '!' */
|
||||
++param; /* Step over '!' */
|
||||
while (_istspace (*param)) /* And subsequent spaces */
|
||||
param++;
|
||||
}
|
||||
else if (!_tcsnicmp (param, _T("not"), 3) && _istspace (*(param + 3)))
|
||||
/* First check if param string begins with 'not' */
|
||||
if (!_tcsnicmp (param, _T("not"), 3) && _istspace (*(param + 3)))
|
||||
{
|
||||
x_flag = X_EXEC; /* Remember 'NOT' */
|
||||
param += 3; /* Step over 'NOT' */
|
||||
|
@ -190,7 +183,11 @@ INT cmd_if (LPTSTR cmd, LPTSTR param)
|
|||
pp += p1len;
|
||||
|
||||
if ( x_flag )
|
||||
{
|
||||
while (*pp && !_istspace (*pp)) /* Find first space, */
|
||||
pp++;
|
||||
x_flag |= X_EMPTY;
|
||||
}
|
||||
}
|
||||
|
||||
if (x_flag & X_EMPTY)
|
||||
|
|
Loading…
Reference in a new issue