ShellPkg: Fix Shell fail with redundant space following delay number.
When boot from Shell we can use '-delay [num]' as optional data. If blank space exist after '[num]' Shell will fail. This patch add error handling to avoid this failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18431 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -359,6 +359,7 @@ CreatePopulateInstallShellParametersProtocol (
|
||||
//
|
||||
// Populate Argc and Argv
|
||||
//
|
||||
TrimSpaces (&FullCommandLine);
|
||||
Status = ParseCommandLineToArgs(FullCommandLine,
|
||||
&(*NewShellParameters)->Argv,
|
||||
&(*NewShellParameters)->Argc);
|
||||
|
Reference in New Issue
Block a user