From 1ddf2b4db8c42da36bdccd43dc336eee6ba03cce Mon Sep 17 00:00:00 2001 From: Owen Rudge Date: Mon, 6 Mar 2017 22:06:19 +0000 Subject: [PATCH] gdiplus/tests: Add tests for invalid parameter handling for GdipGetFontHeight. Signed-off-by: Owen Rudge Signed-off-by: Vincent Povirk Signed-off-by: Alexandre Julliard --- dlls/gdiplus/tests/font.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 827ef2ab829..dd624a42c93 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -546,6 +546,12 @@ static void gdip_get_font_metrics(GpFont *font, struct font_metrics *fm) stat = GdipGetFontStyle(font, &style); expect(Ok, stat); + stat = GdipGetFontHeight(NULL, NULL, &fm->font_height); + expect(InvalidParameter, stat); + + stat = GdipGetFontHeight(font, NULL, NULL); + expect(InvalidParameter, stat); + stat = GdipGetFontHeight(font, NULL, &fm->font_height); expect(Ok, stat); stat = GdipGetFontSize(font, &fm->font_size);