Re: [PATCH] reg: Account for sizeof(WCHAR) when resizing the value name buffer during the query operation
21 Jul
2017
21 Jul
'17
11:05 a.m.
On 21 July 2017 at 10:47, Hugh McMaster <hugh.mcmaster(a)outlook.com> wrote:
- value_name = HeapReAlloc(GetProcessHeap(), 0, value_name, max_value_len); + value_name = HeapReAlloc(GetProcessHeap(), 0, value_name, max_value_len * sizeof(WCHAR)); Note that this leaks the existing "value_name" allocation if the HeapReAlloc() call should fail.
3069
Age (days ago)
3069
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet