Commit fe6bb5f7 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Don't abort enumeration if a font fails to load.

parent 91741446
...@@ -2772,11 +2772,11 @@ static BOOL enum_face_charsets( const struct gdi_font_family *family, struct gdi ...@@ -2772,11 +2772,11 @@ static BOOL enum_face_charsets( const struct gdi_font_family *family, struct gdi
{ {
struct gdi_font_enum_data *data; struct gdi_font_enum_data *data;
if (!(data = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*data) ))) return FALSE; if (!(data = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*data) )) ||
if (!get_face_enum_data( face, &data->elf, &data->ntm )) !get_face_enum_data( face, &data->elf, &data->ntm ))
{ {
HeapFree( GetProcessHeap(), 0, data ); HeapFree( GetProcessHeap(), 0, data );
return FALSE; return TRUE;
} }
face->cached_enum_data = data; face->cached_enum_data = 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