Commit 90da210c authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Account for sizeof(WCHAR) when resizing the value name buffer during the query operation.

parent 14ac2f60
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment