mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user