On 21 July 2017 at 10:47, Hugh McMaster hugh.mcmaster@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.