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:
Hugh McMaster 2017-07-21 08:47:15 +00:00 committed by Alexandre Julliard
parent 14ac2f6029
commit 90da210cb0
1 changed files with 1 additions and 1 deletions

View File

@ -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;