mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +00:00
Do not write beyond the buffer.
svn path=/trunk/; revision=26709
This commit is contained in:
parent
acd6160248
commit
10f84bdddc
|
@ -588,7 +588,8 @@ CreateSidCacheMgr(IN HANDLE Heap,
|
||||||
{
|
{
|
||||||
/* zero the static part of the structure */
|
/* zero the static part of the structure */
|
||||||
ZeroMemory(scm,
|
ZeroMemory(scm,
|
||||||
sizeof(SIDCACHEMGR));
|
FIELD_OFFSET(SIDCACHEMGR,
|
||||||
|
SystemName));
|
||||||
|
|
||||||
scm->RefCount = 1;
|
scm->RefCount = 1;
|
||||||
scm->Heap = Heap;
|
scm->Heap = Heap;
|
||||||
|
|
Loading…
Reference in a new issue