Author: cwittich
Date: Thu Jan 31 22:01:23 2008
New Revision: 32069
URL:
http://svn.reactos.org/svn/reactos?rev=32069&view=rev
Log:
handle %dp0
Modified:
trunk/reactos/base/shell/cmd/cmd.c
Modified: trunk/reactos/base/shell/cmd/cmd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=3…
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.c (original)
+++ trunk/reactos/base/shell/cmd/cmd.c Thu Jan 31 22:01:23 2008
@@ -1293,6 +1293,18 @@
return NULL;
switch ( *varName )
{
+ case _T('~'):
+ varName++;
+ if (_tcsncicmp(varName, _T("dp0"), 3) == 0)
+ {
+ if ( varNameLen )
+ *varNameLen = 4;
+ varName += 2;
+ if ( !GrowIfNecessary ( MAX_PATH, &ret, &retlen ) )
+ return NULL;
+ GetCurrentDirectory(MAX_PATH, ret);
+ }
+ return ret;
case _T('0'):
case _T('1'):
case _T('2'):
@@ -1411,7 +1423,7 @@
LPCTSTR tmp;
BOOL bEchoThisLine;
BOOL bModeSetA;
- BOOL bIsBatch;
+ BOOL bIsBatch;
do
{