Commit 6a5bb87e authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

gdi32: In init_system_links, reinitialize val_len and data_len before continuing.

parent 3935c81b
...@@ -1663,7 +1663,7 @@ static BOOL init_system_links(void) ...@@ -1663,7 +1663,7 @@ static BOOL init_system_links(void)
if(psub) if(psub)
{ {
TRACE("%s: SystemLink entry for substituted font, ignoring\n", debugstr_w(value)); TRACE("%s: SystemLink entry for substituted font, ignoring\n", debugstr_w(value));
continue; goto next;
} }
font_link = HeapAlloc(GetProcessHeap(), 0, sizeof(*font_link)); font_link = HeapAlloc(GetProcessHeap(), 0, sizeof(*font_link));
font_link->font_name = strdupW(value); font_link->font_name = strdupW(value);
...@@ -1712,6 +1712,7 @@ static BOOL init_system_links(void) ...@@ -1712,6 +1712,7 @@ static BOOL init_system_links(void)
} }
} }
list_add_tail(&system_links, &font_link->entry); list_add_tail(&system_links, &font_link->entry);
next:
val_len = max_val + 1; val_len = max_val + 1;
data_len = max_data; data_len = max_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