Author: dgorbachev
Date: Mon May 14 02:44:36 2007
New Revision: 26766
URL:
http://svn.reactos.org/svn/reactos?rev=26766&view=rev
Log:
Fix r26764.
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=267…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/init.c (original)
+++ trunk/reactos/ntoskrnl/ex/init.c Mon May 14 02:44:36 2007
@@ -1043,8 +1043,8 @@
/* Remove trailing newline */
while ((CsdString.Length > 0) &&
- ((CsdString.Buffer[CsdString.Length] == '\r') ||
- (CsdString.Buffer[CsdString.Length] == '\n')))
+ ((CsdString.Buffer[CsdString.Length - 1] == '\r') ||
+ (CsdString.Buffer[CsdString.Length - 1] == '\n')))
{
/* Skip the trailing character */
CsdString.Length--;
@@ -1466,8 +1466,8 @@
/* Make sure to remove the \r\n if we actually have a string */
while ((TempString.Length > 0) &&
- ((TempString.Buffer[TempString.Length] == '\r') ||
- (TempString.Buffer[TempString.Length] == '\n')))
+ ((TempString.Buffer[TempString.Length - 1] == '\r') ||
+ (TempString.Buffer[TempString.Length - 1] == '\n')))
{
/* Skip the trailing character */
TempString.Length--;