mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 02:56:09 +00:00
[DISKPART]
Speed up the interpreter a bit. Patch by Lee Schroeder. CORE-9925 #resolve #comment Thank's a lot! svn path=/trunk/; revision=68475
This commit is contained in:
parent
4cb15718ab
commit
75b8f2bb9f
1 changed files with 8 additions and 8 deletions
|
@ -69,9 +69,6 @@ InterpretCmd(int argc, LPWSTR *argv)
|
||||||
{
|
{
|
||||||
PCOMMAND cmdptr;
|
PCOMMAND cmdptr;
|
||||||
|
|
||||||
/* Scan internal command table */
|
|
||||||
for (cmdptr = cmds; cmdptr->name; cmdptr++)
|
|
||||||
{
|
|
||||||
/* First, determine if the user wants to exit
|
/* First, determine if the user wants to exit
|
||||||
or to use a comment */
|
or to use a comment */
|
||||||
if(wcsicmp(argv[0], L"exit") == 0)
|
if(wcsicmp(argv[0], L"exit") == 0)
|
||||||
|
@ -80,6 +77,9 @@ InterpretCmd(int argc, LPWSTR *argv)
|
||||||
if(wcsicmp(argv[0], L"rem") == 0)
|
if(wcsicmp(argv[0], L"rem") == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
/* Scan internal command table */
|
||||||
|
for (cmdptr = cmds; cmdptr->name; cmdptr++)
|
||||||
|
{
|
||||||
if (wcsicmp(argv[0], cmdptr->name) == 0)
|
if (wcsicmp(argv[0], cmdptr->name) == 0)
|
||||||
return cmdptr->func(argc, argv);
|
return cmdptr->func(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue