%foo% where foo is not a envir var should be returned as %foo% not as "".

svn path=/trunk/; revision=19028
This commit is contained in:
Brandon Turner 2005-11-06 16:11:01 +00:00
parent 23a4529556
commit d6e1554b68

View file

@ -1175,7 +1175,9 @@ GetEnvVarOrSpecial ( LPCTSTR varName )
return ret; return ret;
} }
return _T(""); /* not found - return empty string */ GrowIfNecessary(_tcslen(varName) + 2, &ret, &retlen);
_stprintf(ret,_T("%%%s%%"),varName);
return ret; /* not found - return orginal string */
} }
LPCTSTR LPCTSTR