Author: cwittich
Date: Sat Feb 2 12:21:22 2008
New Revision: 32081
URL:
http://svn.reactos.org/svn/reactos?rev=32081&view=rev
Log:
set correct varNameLen for %~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 Sat Feb 2 12:21:22 2008
@@ -1305,8 +1305,7 @@
if (_tcsncicmp(varName, _T("dp0"), 3) == 0)
{
if ( varNameLen )
- *varNameLen = 4;
- varName += 2;
+ *varNameLen = 5;
return bc->BatchFilePath;
}
case _T('0'):