mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[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:
parent
2c7124382b
commit
f61200c5d3
1 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue