mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue