projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
417ebeb
)
[kernel32]
author
Aleksey Bragin
<aleksey@reactos.org>
Mon, 12 Oct 2009 19:45:12 +0000
(19:45 +0000)
committer
Aleksey 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
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/kernel32/misc/ldr.c
b/reactos/dll/win32/kernel32/misc/ldr.c
index
6f4a2dd
..
9e32478
100644
(file)
--- a/
reactos/dll/win32/kernel32/misc/ldr.c
+++ b/
reactos/dll/win32/kernel32/misc/ldr.c
@@
-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;