Module: wine Branch: master Commit: 5e648e896731190270b399434c6332b18504ecdc URL: https://source.winehq.org/git/wine.git/?a=commit;h=5e648e896731190270b399434...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Dec 21 21:04:55 2020 +0100
gdi32: Don't fail font creation when we are out of handles.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50354 Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/gdi32/font.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 00bbeb0a11f..7f243192cc3 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -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; }