mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
move code to the correct position to handle all cases in 'if'
svn path=/trunk/; revision=32084
This commit is contained in:
parent
9b8be30ee9
commit
696d5b4b7c
|
@ -181,29 +181,29 @@ INT cmd_if (LPTSTR cmd, LPTSTR param)
|
|||
x_flag ^= X_EXEC;
|
||||
pp += p1len;
|
||||
|
||||
while (_istspace (*pp)) /* skip spaces */
|
||||
pp++;
|
||||
|
||||
if (*pp == _T('('))
|
||||
{
|
||||
if (bc)
|
||||
{
|
||||
pp++;
|
||||
bc->bCmdBlock++;
|
||||
if ((bc->bCmdBlock >= 0) && (bc->bCmdBlock < MAX_PATH))
|
||||
bc->bExecuteBlock[bc->bCmdBlock] = x_flag & X_EXEC;
|
||||
/* commands are in the next lines */
|
||||
if (*pp == _T('\0'))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if ( x_flag )
|
||||
{
|
||||
x_flag |= X_EMPTY;
|
||||
}
|
||||
}
|
||||
|
||||
while (_istspace (*pp)) /* skip spaces */
|
||||
pp++;
|
||||
|
||||
if (*pp == _T('('))
|
||||
{
|
||||
if (bc)
|
||||
{
|
||||
pp++;
|
||||
bc->bCmdBlock++;
|
||||
if ((bc->bCmdBlock >= 0) && (bc->bCmdBlock < MAX_PATH))
|
||||
bc->bExecuteBlock[bc->bCmdBlock] = x_flag & X_EXEC;
|
||||
/* commands are in the next lines */
|
||||
if (*pp == _T('\0'))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (x_flag & X_EMPTY)
|
||||
{
|
||||
while (_istspace (*pp)) /* Then skip spaces */
|
||||
|
|
Loading…
Reference in a new issue