Commit a03cbbdb authored by Hans Lehnert's avatar Hans Lehnert Committed by Alexandre Julliard

gdiplus: Fix invalid pointer returned when failing to create font.

parent 31c61075
...@@ -236,6 +236,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc, ...@@ -236,6 +236,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
if (stat != Ok) if (stat != Ok)
{ {
free(*font); free(*font);
*font = NULL;
return NotTrueTypeFont; return NotTrueTypeFont;
} }
......
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