From: Hans Lehnert hans.lehnert@gmail.com
--- 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; }
Hi,
It would be great if you included a test for this.
This merge request was approved by Esme Povirk.
On Mon Dec 11 00:49:45 2023 +0000, David Kahurani wrote:
Hi, It would be great if you included a test for this.
I think testing might not be straightforward as it would require some font that's not supported and will reach this code path to always be installed.