- Remove incorrect null-termination of a string. Thanks to Russel for spotting.
See issue #4820 for more details.
svn path=/trunk/; revision=43416
Pos += GetWindowsDirectoryW(EnvironmentBufferW + Pos, Length - Pos);
EnvironmentBufferW[Pos++] = L';';
Pos += GetEnvironmentVariableW(L"PATH", EnvironmentBufferW + Pos, Length - Pos);
Pos += GetWindowsDirectoryW(EnvironmentBufferW + Pos, Length - Pos);
EnvironmentBufferW[Pos++] = L';';
Pos += GetEnvironmentVariableW(L"PATH", EnvironmentBufferW + Pos, Length - Pos);
- EnvironmentBufferW[Pos] = 0;
SetLastError(LastError);
return EnvironmentBufferW;
SetLastError(LastError);
return EnvironmentBufferW;