[NTOS]: Addendum to r66735: move the code that prints our revision number in the SOS banner to a different place, in order to remain NT-compatible (that is, the CSDVersion string should only contain "Service Pack ###" or "Service Pack ###, v.###" according to the value of the CSDReleaseType registry value).

svn path=/trunk/; revision=66753
This commit is contained in:
Hermès Bélusca-Maïto 2015-03-17 03:04:20 +00:00
parent bc181f2e5b
commit f04c5e01f1

View file

@ -1217,13 +1217,10 @@ ExpInitializeExecutive(IN ULONG Cpu,
}
/* Add the version format string */
/* ReactOS specific: Append also the revision number */
Status = RtlStringCbPrintfA(RcEnd,
Remaining,
"v.%u"
" r%u",
(CmNtCSDVersion & 0xFFFF0000) >> 16,
KERNEL_VERSION_BUILD_HEX);
"v.%u",
(CmNtCSDVersion & 0xFFFF0000) >> 16);
if (!NT_SUCCESS(Status))
{
/* Fail */
@ -1429,12 +1426,15 @@ Phase1InitializationDiscard(IN PVOID Context)
if (CmCSDVersionString.Length)
{
/* Print the version string */
/* ReactOS specific: Append also the revision number */
Status = RtlStringCbPrintfExA(StringBuffer,
Remaining,
&EndBuffer,
&Remaining,
0,
" r%u"
": %wZ",
KERNEL_VERSION_BUILD_HEX,
&CmCSDVersionString);
if (!NT_SUCCESS(Status))
{