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:
Magnus Olsen 2007-05-12 08:27:00 +00:00
parent ff7c618dd0
commit 66d03d55cd

View file

@ -763,7 +763,7 @@ CRegKeySecurity_fnConstructor(LPTSTR lpRegKey,
obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
FIELD_OFFSET(CRegKeySecurity,
szRegKey[_tcslen(lpRegKey)+1]));
szRegKey[_tcslen(lpRegKey) + sizeof(TCHAR)]));
if (obj != NULL)
{
obj->ref = 1;