mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
did see a small mistake use sizeof(TCHAR) for adding NULL termeting of string for u do not known if we switch compile regedit as unicode-16 or ANSI.
svn path=/trunk/; revision=26715
This commit is contained in:
parent
ff7c618dd0
commit
66d03d55cd
|
@ -763,7 +763,7 @@ CRegKeySecurity_fnConstructor(LPTSTR lpRegKey,
|
||||||
obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(),
|
obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(),
|
||||||
HEAP_ZERO_MEMORY,
|
HEAP_ZERO_MEMORY,
|
||||||
FIELD_OFFSET(CRegKeySecurity,
|
FIELD_OFFSET(CRegKeySecurity,
|
||||||
szRegKey[_tcslen(lpRegKey)+1]));
|
szRegKey[_tcslen(lpRegKey) + sizeof(TCHAR)]));
|
||||||
if (obj != NULL)
|
if (obj != NULL)
|
||||||
{
|
{
|
||||||
obj->ref = 1;
|
obj->ref = 1;
|
||||||
|
|
Loading…
Reference in a new issue