Use FixedVariable::bAbsPath to check for special path vars

Change-Id: I526c45ecf3c7e21b87c16eef5047707f74da7668
This commit is contained in:
Stephan Bergmann
2016-09-27 15:45:20 +02:00
parent 02f114096d
commit 120d8fc75c

View File

@@ -1091,9 +1091,7 @@ throw ( RuntimeException )
if ( nPos >= 0 )
{
bool bMatch = true;
if ( i.eVariable == PREDEFVAR_USERNAME ||
i.eVariable == PREDEFVAR_LANGID ||
i.eVariable == PREDEFVAR_VLANG )
if ( !aFixedVarTable[i.eVariable].bAbsPath )
{
// Special path variables as they can occur in the middle of a path. Only match if they
// describe a whole directory and not only a substring of a directory!