[GDIPLUS] Sync with Wine Staging 2.9. CORE-13362
[reactos.git] / reactos / dll / win32 / gdiplus / font.c
index a731d56..57f90e7 100644 (file)
@@ -543,6 +543,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;