mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
Do not write beyond the buffer.
svn path=/trunk/; revision=26708
This commit is contained in:
parent
14f97db8a4
commit
acd6160248
|
@ -763,7 +763,7 @@ CRegKeySecurity_fnConstructor(LPTSTR lpRegKey,
|
|||
obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(),
|
||||
HEAP_ZERO_MEMORY,
|
||||
FIELD_OFFSET(CRegKeySecurity,
|
||||
szRegKey[_tcslen(lpRegKey)]));
|
||||
szRegKey[_tcslen(lpRegKey)+1]));
|
||||
if (obj != NULL)
|
||||
{
|
||||
obj->ref = 1;
|
||||
|
|
Loading…
Reference in a new issue