Author: rharabien
Date: Sat Mar 26 21:41:49 2011
New Revision: 51165
URL:
http://svn.reactos.org/svn/reactos?rev=51165&view=rev
Log:
Fix duplicated startup version string
Patch by Thomas Faber <thfabba at gmx dot de>
See issue #6015 for more details.
Modified:
trunk/reactos/ntoskrnl/ex/init.c
Modified: trunk/reactos/ntoskrnl/ex/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/init.c?rev=511…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] Sat Mar 26 21:41:49 2011
@@ -1410,9 +1410,12 @@
else
{
/* No version */
- *EndBuffer++ = ANSI_NULL; /* Null-terminate the string */
- --Remaining;
- }
+ *EndBuffer = ANSI_NULL; /* Null-terminate the string */
+ }
+
+ /* Skip over the null-terminator to start a new string */
+ ++EndBuffer;
+ --Remaining;
/* Build the version number */
StringBuffer = InitBuffer->VersionNumber;