projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a4529
)
%foo% where foo is not a envir var should be returned as %foo% not as "".
author
Brandon Turner
<turnerb7@msu.edu>
Sun, 6 Nov 2005 16:11:01 +0000
(16:11 +0000)
committer
Brandon Turner
<turnerb7@msu.edu>
Sun, 6 Nov 2005 16:11:01 +0000
(16:11 +0000)
svn path=/trunk/; revision=19028
reactos/subsys/system/cmd/cmd.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/cmd/cmd.c
b/reactos/subsys/system/cmd/cmd.c
index
60a7a9f
..
463af51
100644
(file)
--- a/
reactos/subsys/system/cmd/cmd.c
+++ b/
reactos/subsys/system/cmd/cmd.c
@@
-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