[kernel32]
authorAleksey Bragin <aleksey@reactos.org>
Mon, 12 Oct 2009 19:45:12 +0000 (19:45 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 12 Oct 2009 19:45:12 +0000 (19:45 +0000)
- Remove incorrect null-termination of a string. Thanks to Russel for spotting.
See issue #4820 for more details.

svn path=/trunk/; revision=43416

reactos/dll/win32/kernel32/misc/ldr.c

index 6f4a2dd..9e32478 100644 (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;