[DISKPART]

- Correct command processing following the first command in interactive mode.
- Correct invocation of command-specific help functions.

svn path=/trunk/; revision=57447
This commit is contained in:
Roel Messiant 2012-09-30 22:25:26 +00:00
parent bdd3db1d3d
commit e36d4c8c40
2 changed files with 2 additions and 1 deletions

View file

@ -84,7 +84,7 @@ BOOL help_main(INT argc, WCHAR **argv)
/* Scan internal command table */
for (cmdptr = cmds; cmdptr->name; cmdptr++)
{
if (_wcsicmp(argv[0], cmdptr->name) == 0 && cmdptr->help != NULL)
if (_wcsicmp(argv[1], cmdptr->name) == 0 && cmdptr->help != NULL)
{
cmdptr->help(argc, argv);
return TRUE;

View file

@ -156,6 +156,7 @@ InterpretMain(VOID)
while (bRun == TRUE)
{
args_count = 0;
memset(args_vector, 0, sizeof(args_vector));
/* shown just before the input where the user places commands */