gdi32: Don't abort enumeration if a font fails to load.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
91741446c7
commit
fe6bb5f723
|
@ -2772,11 +2772,11 @@ static BOOL enum_face_charsets( const struct gdi_font_family *family, struct gdi
|
|||
{
|
||||
struct gdi_font_enum_data *data;
|
||||
|
||||
if (!(data = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*data) ))) return FALSE;
|
||||
if (!get_face_enum_data( face, &data->elf, &data->ntm ))
|
||||
if (!(data = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*data) )) ||
|
||||
!get_face_enum_data( face, &data->elf, &data->ntm ))
|
||||
{
|
||||
HeapFree( GetProcessHeap(), 0, data );
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
face->cached_enum_data = data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue