gdiplus: Check for null in GdipGetFontHeight.
Signed-off-by: Owen Rudge <orudge@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
20920457d7
commit
36c9ac3968
|
@ -558,6 +558,8 @@ GpStatus WINGDIPAPI GdipGetFontHeight(GDIPCONST GpFont *font,
|
|||
|
||||
TRACE("%p %p %p\n", font, graphics, height);
|
||||
|
||||
if (!font || !height) return InvalidParameter;
|
||||
|
||||
stat = GdipGetFontHeightGivenDPI(font, font->family->dpi, &font_height);
|
||||
if (stat != Ok) return stat;
|
||||
|
||||
|
|
Loading…
Reference in New Issue