[ros-diffs] [fireball] 43416: [kernel32] - Remove incorrect null-termination of a string. Thanks to Russel for spotting. See issue #4820 for more details.

fireball at svn.reactos.org fireball at svn.reactos.org
Mon Oct 12 21:45:12 CEST 2009


Author: fireball
Date: Mon Oct 12 21:45:12 2009
New Revision: 43416

URL: http://svn.reactos.org/svn/reactos?rev=43416&view=rev
Log:
[kernel32]
- Remove incorrect null-termination of a string. Thanks to Russel for spotting.
See issue #4820 for more details.

Modified:
    trunk/reactos/dll/win32/kernel32/misc/ldr.c

Modified: trunk/reactos/dll/win32/kernel32/misc/ldr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/ldr.c?rev=43416&r1=43415&r2=43416&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/ldr.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/ldr.c [iso-8859-1] Mon Oct 12 21:45:12 2009
@@ -92,7 +92,6 @@
 	Pos += GetWindowsDirectoryW(EnvironmentBufferW + Pos, Length - Pos);
 	EnvironmentBufferW[Pos++] = L';';
 	Pos += GetEnvironmentVariableW(L"PATH", EnvironmentBufferW + Pos, Length - Pos);
-	EnvironmentBufferW[Pos] = 0;
 
 	SetLastError(LastError);
 	return EnvironmentBufferW;




More information about the Ros-diffs mailing list