Revision: 16815
http://sourceforge.net/p/edk2/code/16815
Author: jcarsey
Date: 2015-02-06 21:03:28 +0000 (Fri, 06 Feb 2015)
Log Message:
-----------
ShellPkg: command help with -? flag is not working and it gives too many
arguments error message.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <[email protected]>
Reviewed-by: Tapan Shah <[email protected]>
Modified Paths:
--------------
trunk/edk2/ShellPkg/Application/Shell/Shell.c
Modified: trunk/edk2/ShellPkg/Application/Shell/Shell.c
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/Shell.c 2015-02-06 07:46:38 UTC
(rev 16814)
+++ trunk/edk2/ShellPkg/Application/Shell/Shell.c 2015-02-06 21:03:28 UTC
(rev 16815)
@@ -1989,7 +1989,6 @@
{
CHAR16 *CurrentParameter;
CHAR16 *Walker;
- CHAR16 *LastWalker;
CHAR16 *NewCommandLine;
EFI_STATUS Status;
@@ -2002,11 +2001,10 @@
Walker = *CmdLine;
while(Walker != NULL && *Walker != CHAR_NULL) {
- LastWalker = Walker;
if (!EFI_ERROR(GetNextParameter(&Walker, &CurrentParameter,
StrSize(*CmdLine)))) {
if (StrStr(CurrentParameter, L"-?") == CurrentParameter) {
- LastWalker[0] = L' ';
- LastWalker[1] = L' ';
+ CurrentParameter[0] = L' ';
+ CurrentParameter[1] = L' ';
NewCommandLine = AllocateZeroPool(StrSize(L"help ") +
StrSize(*CmdLine));
if (NewCommandLine == NULL) {
Status = EFI_OUT_OF_RESOURCES;
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits