Author: hbelusca
Date: Wed Jun 1 13:22:33 2016
New Revision: 71485
URL:
http://svn.reactos.org/svn/reactos?rev=71485&view=rev
Log:
[BASESRV]
- Always NULL-terminate the cached CSDVersion string.
- Alex wrote most of this file! Attribute to him too.
Modified:
trunk/reactos/subsystems/win/basesrv/init.c
Modified: trunk/reactos/subsystems/win/basesrv/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win/basesrv/ini…
==============================================================================
--- trunk/reactos/subsystems/win/basesrv/init.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win/basesrv/init.c [iso-8859-1] Wed Jun 1 13:22:33 2016
@@ -3,7 +3,8 @@
* PROJECT: ReactOS Base API Server DLL
* FILE: subsystems/win/basesrv/init.c
* PURPOSE: Initialization
- * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca(a)sfr.fr)
+ * PROGRAMMERS: Alex Ionescu (alex.ionescu(a)reactos.org)
+ * Hermes Belusca-Maito (hermes.belusca(a)sfr.fr)
*/
/* INCLUDES *******************************************************************/
@@ -440,9 +441,11 @@
}
else
{
- /* NULL-terminate to indicate nothing is there */
- BaseStaticServerData->CSDVersion[0] = UNICODE_NULL;
- }
+ /* Indicate nothing is there */
+ BaseSrvCSDString.Length = 0;
+ }
+ /* NULL-terminate */
+ BaseStaticServerData->CSDVersion[BaseSrvCSDString.Length / sizeof(WCHAR)] =
UNICODE_NULL;
/* Cache the system information */
Status = NtQuerySystemInformation(SystemBasicInformation,