mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
%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:
parent
23a4529556
commit
d6e1554b68
|
@ -1175,7 +1175,9 @@ GetEnvVarOrSpecial ( LPCTSTR varName )
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue