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.