Hans Lehnert : gdiplus: Fix invalid pointer returned when failing to create font.
12 Dec
2023
12 Dec
'23
4:24 p.m.
Module: wine Branch: master Commit: a03cbbdbe2cd50e1d6f113639be20edb562d4052 URL: https://gitlab.winehq.org/wine/wine/-/commit/a03cbbdbe2cd50e1d6f113639be20ed... Author: Hans Lehnert <hans.lehnert(a)gmail.com> Date: Fri Dec 8 21:58:30 2023 -0800 gdiplus: Fix invalid pointer returned when failing to create font. --- dlls/gdiplus/font.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 4970043eb15..0dcfad34bbb 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -236,6 +236,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc, if (stat != Ok) { free(*font); + *font = NULL; return NotTrueTypeFont; }
734
Age (days ago)
734
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard