Commit 5e648e89 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Don't fail font creation when we are out of handles.

parent 772e9e9e
......@@ -1717,11 +1717,7 @@ static struct gdi_font *alloc_gdi_font( const WCHAR *file, void *data_ptr, SIZE_
font->data_size = data_size;
}
if (!(font->handle = alloc_font_handle( font )))
{
HeapFree( GetProcessHeap(), 0, font );
return NULL;
}
font->handle = alloc_font_handle( font );
return font;
}
......
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