[BASESRV]

- Always NULL-terminate the cached CSDVersion string.
- Alex wrote most of this file! Attribute to him too.

svn path=/trunk/; revision=71485
This commit is contained in:
Hermès Bélusca-Maïto 2016-06-01 13:22:33 +00:00
parent 2c7124382b
commit f61200c5d3

View file

@ -3,7 +3,8 @@
* PROJECT: ReactOS Base API Server DLL
* FILE: subsystems/win/basesrv/init.c
* PURPOSE: Initialization
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
/* INCLUDES *******************************************************************/
@ -440,9 +441,11 @@ BaseInitializeStaticServerData(IN PCSR_SERVER_DLL LoadedServerDll)
}
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,