[kernel32]

- Remove incorrect null-termination of a string. Thanks to Russel for spotting.
See issue #4820 for more details.

svn path=/trunk/; revision=43416
This commit is contained in:
Aleksey Bragin 2009-10-12 19:45:12 +00:00
parent 417ebeb75f
commit 101f8fcb31

View file

@ -92,7 +92,6 @@ GetDllLoadPath(LPCWSTR lpModule)
Pos += GetWindowsDirectoryW(EnvironmentBufferW + Pos, Length - Pos);
EnvironmentBufferW[Pos++] = L';';
Pos += GetEnvironmentVariableW(L"PATH", EnvironmentBufferW + Pos, Length - Pos);
EnvironmentBufferW[Pos] = 0;
SetLastError(LastError);
return EnvironmentBufferW;