mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[NETSH] Add a special code path to execute commands that follow the pushd command
This enables the execution of commands like 'pushd interface ip' which is emitted by the dump command of WinXPs ifmon.dll.
This commit is contained in:
@@ -213,6 +213,16 @@ InterpretCommand(
|
||||
else
|
||||
ConPrintf(StdOut, L"Command: %s Error: %lu\n\n", pCommand->pwszCmdToken, dwError);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Execute the commands following a pushd command */
|
||||
if ((_wcsicmp(pCommand->pwszCmdToken, L"pushd") == 0) &&
|
||||
(dwArgIndex < dwArgCount))
|
||||
{
|
||||
State = STATE_ANALYZE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
State = STATE_DONE;
|
||||
|
||||
Reference in New Issue
Block a user