Commit 93def703 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdi32: Allocate smaller buffer in delete_external_font_keys helper.

parent 401ec369
......@@ -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,
......
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