mirror of https://github.com/acidanthera/audk.git
ShellPkg: Revert 16720 and 16734.
I will submit a new patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16758 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a95cf8f0f4
commit
fe8ec3dd93
|
@ -212,20 +212,19 @@ ContainsSplit(
|
|||
TempSpot = FindFirstCharacter(CmdLine, L"|", L'^');
|
||||
|
||||
if (FirstQuote == NULL ||
|
||||
*FirstQuote == CHAR_NULL ||
|
||||
TempSpot == NULL ||
|
||||
*TempSpot == CHAR_NULL ||
|
||||
TempSpot == CHAR_NULL ||
|
||||
FirstQuote > TempSpot
|
||||
) {
|
||||
return (BOOLEAN) ((TempSpot != NULL) && (*TempSpot != CHAR_NULL));
|
||||
}
|
||||
|
||||
while ((TempSpot != NULL) && (*TempSpot != CHAR_NULL)) {
|
||||
if (FirstQuote == NULL || *FirstQuote == CHAR_NULL || FirstQuote > TempSpot) {
|
||||
if (FirstQuote == NULL || FirstQuote > TempSpot) {
|
||||
break;
|
||||
}
|
||||
SecondQuote = FindNextInstance (FirstQuote + 1, L"\"", TRUE);
|
||||
if (SecondQuote == NULL || *SecondQuote == CHAR_NULL) {
|
||||
if (SecondQuote == NULL) {
|
||||
break;
|
||||
}
|
||||
if (SecondQuote < TempSpot) {
|
||||
|
@ -1375,7 +1374,7 @@ StripUnreplacedEnvironmentVariables(
|
|||
continue;
|
||||
}
|
||||
|
||||
if (FirstQuote == NULL || *FirstQuote == CHAR_NULL || SecondPercent < FirstQuote) {
|
||||
if (FirstQuote == NULL || SecondPercent < FirstQuote) {
|
||||
if (IsValidEnvironmentVariableName(FirstPercent, SecondPercent)) {
|
||||
//
|
||||
// We need to remove from FirstPercent to SecondPercent
|
||||
|
|
Loading…
Reference in New Issue