reg: Account for sizeof(WCHAR) when resizing the value name buffer during the query operation.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
14ac2f6029
commit
90da210cb0
|
@ -769,7 +769,7 @@ static int query_all(HKEY key, WCHAR *path, BOOL recurse)
|
|||
else
|
||||
{
|
||||
max_value_len *= 2;
|
||||
value_name = HeapReAlloc(GetProcessHeap(), 0, value_name, max_value_len);
|
||||
value_name = HeapReAlloc(GetProcessHeap(), 0, value_name, max_value_len * sizeof(WCHAR));
|
||||
}
|
||||
}
|
||||
else break;
|
||||
|
|
Loading…
Reference in New Issue