move code to the correct position to handle all cases in 'if'

svn path=/trunk/; revision=32084
This commit is contained in:
Christoph von Wittich 2008-02-02 10:52:29 +00:00
parent 9b8be30ee9
commit 696d5b4b7c

View file

@ -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 */