22 May
2018
22 May
'18
3:06 p.m.
On 22/05/18 09:46, Alexandre Julliard wrote:
Zebediah Figura <z.figura12(a)gmail.com> writes:
+ RegQueryInfoKeyW(drivers, 0, 0, 0, 0, 0, 0, 0, &valuelen, 0, 0, 0); + value = heap_alloc(++valuelen * sizeof(WCHAR));
I'll put this is for now, but note that using RegQueryInfoKey() is almost always a bug. There's no guarantee that the maximum size won't change, so the right way is to grow the buffer as needed.
Thanks, I'll send a patch to fix it after today's commits.