ShellPkg: leave quotes around params

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15875 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Jaben Carsey 2014-08-21 22:13:08 +00:00 committed by jcarsey
parent a0d367299f
commit 5eadb80f09
1 changed files with 5 additions and 1 deletions

View File

@ -85,7 +85,11 @@ GetNextParameter(
StrCpy(*TempParameter, L""); StrCpy(*TempParameter, L"");
*Walker = NextDelim + 1; *Walker = NextDelim + 1;
} else if (NextDelim != NULL) { } else if (NextDelim != NULL) {
StrnCpy(*TempParameter, (*Walker)+1, NextDelim - ((*Walker)+1));
//
// Copy ensuring that both quotes are left in place.
//
StrnCpy(*TempParameter, (*Walker), NextDelim - *Walker + 1);
*Walker = NextDelim + 1; *Walker = NextDelim + 1;
} else { } else {
// //