Author: fireball
Date: Sat May 12 12:44:49 2007
New Revision: 26717
URL:
http://svn.reactos.org/svn/reactos?rev=26717&view=rev
Log:
Undo last change, since it's an index in an array of TCHARs, so "1" is
correct.
Modified:
trunk/reactos/base/applications/regedit/security.c
Modified: trunk/reactos/base/applications/regedit/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/security.c (original)
+++ trunk/reactos/base/applications/regedit/security.c Sat May 12 12:44:49 2007
@@ -763,7 +763,7 @@
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;