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:
Owen Rudge 2017-03-06 22:06:15 +00:00 committed by Alexandre Julliard
parent 20920457d7
commit 36c9ac3968
1 changed files with 2 additions and 0 deletions

View File

@ -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;