From 10f84bdddcfea2f22090e1f3d633ba7a0ca29347 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Fri, 11 May 2007 23:17:44 +0000 Subject: [PATCH] Do not write beyond the buffer. svn path=/trunk/; revision=26709 --- reactos/dll/win32/aclui/sidcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/aclui/sidcache.c b/reactos/dll/win32/aclui/sidcache.c index 73513ffe4c8..9c7aade81e9 100644 --- a/reactos/dll/win32/aclui/sidcache.c +++ b/reactos/dll/win32/aclui/sidcache.c @@ -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;