SecondQuote = NULL;\r
TempSpot = FindFirstCharacter(CmdLine, L"|", L'^');\r
\r
- if (FirstQuote == NULL || \r
- *FirstQuote == CHAR_NULL ||\r
- TempSpot == NULL || \r
- *TempSpot == CHAR_NULL || \r
+ if (FirstQuote == NULL || \r
+ TempSpot == NULL || \r
+ TempSpot == CHAR_NULL || \r
FirstQuote > TempSpot\r
) {\r
return (BOOLEAN) ((TempSpot != NULL) && (*TempSpot != CHAR_NULL));\r
}\r
\r
while ((TempSpot != NULL) && (*TempSpot != CHAR_NULL)) {\r
- if (FirstQuote == NULL || *FirstQuote == CHAR_NULL || FirstQuote > TempSpot) {\r
+ if (FirstQuote == NULL || FirstQuote > TempSpot) {\r
break;\r
} \r
SecondQuote = FindNextInstance (FirstQuote + 1, L"\"", TRUE);\r
- if (SecondQuote == NULL || *SecondQuote == CHAR_NULL) {\r
+ if (SecondQuote == NULL) {\r
break;\r
}\r
if (SecondQuote < TempSpot) {\r
continue;\r
}\r
\r
- if (FirstQuote == NULL || *FirstQuote == CHAR_NULL || SecondPercent < FirstQuote) {\r
+ if (FirstQuote == NULL || SecondPercent < FirstQuote) {\r
if (IsValidEnvironmentVariableName(FirstPercent, SecondPercent)) {\r
//\r
// We need to remove from FirstPercent to SecondPercent\r