Author: rmessiant Date: Sun Sep 30 22:25:26 2012 New Revision: 57447
URL: http://svn.reactos.org/svn/reactos?rev=57447&view=rev Log: [DISKPART] - Correct command processing following the first command in interactive mode. - Correct invocation of command-specific help functions.
Modified: trunk/reactos/base/system/diskpart/help.c trunk/reactos/base/system/diskpart/interpreter.c
Modified: trunk/reactos/base/system/diskpart/help.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/diskpart/help.c... ============================================================================== --- trunk/reactos/base/system/diskpart/help.c [iso-8859-1] (original) +++ trunk/reactos/base/system/diskpart/help.c [iso-8859-1] Sun Sep 30 22:25:26 2012 @@ -84,7 +84,7 @@ /* 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;
Modified: trunk/reactos/base/system/diskpart/interpreter.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/diskpart/interp... ============================================================================== --- trunk/reactos/base/system/diskpart/interpreter.c [iso-8859-1] (original) +++ trunk/reactos/base/system/diskpart/interpreter.c [iso-8859-1] Sun Sep 30 22:25:26 2012 @@ -156,6 +156,7 @@
while (bRun == TRUE) { + args_count = 0; memset(args_vector, 0, sizeof(args_vector));
/* shown just before the input where the user places commands */