mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
fix length calculation for :~
svn path=/trunk/; revision=32082
This commit is contained in:
@@ -1186,7 +1186,7 @@ GetEnvVarOrSpecial ( LPCTSTR varName )
|
||||
if (i > 0)
|
||||
{
|
||||
if (StringPart[1] < 0)
|
||||
StringPart[1] = _tcslen(ret + StringPart[0]) - 1 + StringPart[1];
|
||||
StringPart[1] = _tcslen(ret + StringPart[0]) + StringPart[1];
|
||||
_tcsncpy(ReturnValue, ret + StringPart[0], StringPart[1]);
|
||||
_tcscpy(ret, ReturnValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user