mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user