mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 22:26:31 +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++;
|
i++;
|
||||||
Token = _tcstok (NULL, _T(","));
|
Token = _tcstok (NULL, _T(","));
|
||||||
}
|
}
|
||||||
_tcsncpy(ReturnValue, ret + (1 - StringPart[0]), StringPart[1]);
|
_tcsncpy(ReturnValue, ret + StringPart[0], StringPart[1]);
|
||||||
_tcscpy(ret, ReturnValue);
|
_tcscpy(ret, ReturnValue);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue