Do not write beyond the buffer.

svn path=/trunk/; revision=26709
This commit is contained in:
Dmitry Gorbachev 2007-05-11 23:17:44 +00:00
parent acd6160248
commit 10f84bdddc

View file

@ -588,7 +588,8 @@ CreateSidCacheMgr(IN HANDLE Heap,
{
/* zero the static part of the structure */
ZeroMemory(scm,
sizeof(SIDCACHEMGR));
FIELD_OFFSET(SIDCACHEMGR,
SystemName));
scm->RefCount = 1;
scm->Heap = Heap;