gdi32: Allocate smaller buffer in delete_external_font_keys helper.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
401ec369cc
commit
93def703cf
|
@ -3210,9 +3210,9 @@ static void delete_external_font_keys(void)
|
|||
&valuelen, &datalen, NULL, NULL);
|
||||
valuelen++; /* returned value doesn't include room for '\0' */
|
||||
valueW = HeapAlloc(GetProcessHeap(), 0, valuelen * sizeof(WCHAR));
|
||||
data = HeapAlloc(GetProcessHeap(), 0, datalen * sizeof(WCHAR));
|
||||
data = HeapAlloc(GetProcessHeap(), 0, datalen);
|
||||
|
||||
dlen = datalen * sizeof(WCHAR);
|
||||
dlen = datalen;
|
||||
vlen = valuelen;
|
||||
i = 0;
|
||||
while(RegEnumValueW(external_key, i++, valueW, &vlen, NULL, &type, data,
|
||||
|
|
Loading…
Reference in New Issue