mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 00:25:05 +00:00
startpos is zero based
svn path=/trunk/; revision=31904
This commit is contained in:
parent
67ed022d72
commit
78f6ee1af6
|
@ -1172,7 +1172,7 @@ GetEnvVarOrSpecial ( LPCTSTR varName )
|
|||
i++;
|
||||
Token = _tcstok (NULL, _T(","));
|
||||
}
|
||||
_tcsncpy(ReturnValue, ret + (1 - StringPart[0]), StringPart[1]);
|
||||
_tcsncpy(ReturnValue, ret + StringPart[0], StringPart[1]);
|
||||
_tcscpy(ret, ReturnValue);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue