[ros-diffs] [rharabien] 51165: Fix duplicated startup version string Patch by Thomas Faber <thfabba at gmx dot de> See issue #6015 for more details.

rharabien at svn.reactos.org rharabien at svn.reactos.org
Sat Mar 26 21:41:49 UTC 2011


Author: rharabien
Date: Sat Mar 26 21:41:49 2011
New Revision: 51165

URL: http://svn.reactos.org/svn/reactos?rev=51165&view=rev
Log:
Fix duplicated startup version string
Patch by Thomas Faber <thfabba at gmx dot de>
See issue #6015 for more details.

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=51165&r1=51164&r2=51165&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/init.c [iso-8859-1] Sat Mar 26 21:41:49 2011
@@ -1410,9 +1410,12 @@
     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;




More information about the Ros-diffs mailing list