mirror of
https://github.com/reactos/reactos.git
synced 2025-05-03 21:00:15 +00:00
[CMD] The "special" environment-like variables are available only when extensions are enabled.
The "special" variables are: CD, DATE, TIME, RANDOM, CMDCMDLINE, CMDEXTVERSION, ERRORLEVEL (and on Win7+, HIGHESTNUMANODENUMBER).
This commit is contained in:
parent
41a93a4e58
commit
04e0fe0652
1 changed files with 5 additions and 1 deletions
|
@ -902,7 +902,11 @@ GetEnvVarOrSpecial(LPCTSTR varName)
|
||||||
if (var)
|
if (var)
|
||||||
return var;
|
return var;
|
||||||
|
|
||||||
/* env var doesn't exist, look for a "special" one */
|
/* The environment variable doesn't exist, look for
|
||||||
|
* a "special" one only if extensions are enabled. */
|
||||||
|
if (!bEnableExtensions)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
/* %CD% */
|
/* %CD% */
|
||||||
if (_tcsicmp(varName, _T("CD")) == 0)
|
if (_tcsicmp(varName, _T("CD")) == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue