From b7c77071ec886001e8c782b2600508d82a1a9871 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sun, 13 May 2007 19:57:35 +0000 Subject: [PATCH] - Remove confusion. svn path=/trunk/; revision=26763 --- reactos/ntoskrnl/ex/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ex/init.c b/reactos/ntoskrnl/ex/init.c index dac6f9c0add..f9d0a33a719 100644 --- a/reactos/ntoskrnl/ex/init.c +++ b/reactos/ntoskrnl/ex/init.c @@ -1040,7 +1040,7 @@ ExpInitializeExecutive(IN ULONG Cpu, { /* Setup the string */ RtlInitAnsiString(&CsdString, MsgEntry->Text); - CsdString.Length -= sizeof(UNICODE_NULL); + CsdString.Length -= 2; Status = RtlStringCbPrintfA(Buffer, sizeof(Buffer), "%Z %u%c", @@ -1455,7 +1455,7 @@ Phase1InitializationDiscard(IN PVOID Context) RtlInitAnsiString(&TempString, MpString); /* Make sure to remove the \r\n if we actually have a string */ - if (TempString.Length >= 2) TempString.Length -= sizeof(UNICODE_NULL); + if (TempString.Length >= 2) TempString.Length -= sizeof(2); /* Get the information string from our resource file */ MsgStatus = RtlFindMessage(NtosEntry->DllBase,