When execute a command with tailing blank spaces in ShellProtocol.Execute() Shell will fail.
This patch move the TrimSpaces operation into ParseCommandLineToArgs function to fix the problem.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yang Jadis <jadis.yang@intel.com>
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@18491
6f19259b-4bc3-4df7-8a09-
765794883524
return (EFI_SUCCESS);\r
}\r
\r
+ TrimSpaces(&(CHAR16*)CommandLine);\r
Size = StrSize(CommandLine);\r
TempParameter = AllocateZeroPool(Size);\r
if (TempParameter == NULL) {\r
//\r
// Populate Argc and Argv\r
//\r
- TrimSpaces (&FullCommandLine);\r
Status = ParseCommandLineToArgs(FullCommandLine,\r
&(*NewShellParameters)->Argv,\r
&(*NewShellParameters)->Argc);\r