Fix parsing DOS1.0 environment variables (patch by diversenok)
@@ -1063,8 +1063,8 @@ BOOLEAN PhEnumProcessEnvironmentVariables(
{
if (currentIndex >= length)
return FALSE;
- if (*currentChar == '=')
- break;
+ if ((*currentChar == '=') && (startIndex != currentIndex))
+ break; // equality sign is considered as a delimiter unless it is the first character (diversenok)
if (*currentChar == 0)
return FALSE; // no more variables
