Undo last change, since it's an index in an array of TCHARs, so "1" is correct.

svn path=/trunk/; revision=26717
This commit is contained in:
Aleksey Bragin 2007-05-12 08:44:49 +00:00
parent 8202615b33
commit a3d6e8f3e9

View file

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