Fix duplicated startup version string

Patch by Thomas Faber <thfabba at gmx dot de>
See issue #6015 for more details.

svn path=/trunk/; revision=51165
This commit is contained in:
Rafal Harabien 2011-03-26 21:41:49 +00:00
parent ac4083c6d7
commit 164140d904

View file

@ -1410,10 +1410,13 @@ Phase1InitializationDiscard(IN PVOID Context)
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;
Status = RtlStringCbPrintfA(StringBuffer,