mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +00:00
[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:
parent
bc181f2e5b
commit
f04c5e01f1
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue