Owen Rudge : gdiplus/tests: Add tests for invalid parameter handling for GdipGetFontHeight.

Alexandre Julliard julliard at winehq.org
Wed Mar 8 16:01:40 CST 2017


Module: wine
Branch: master
Commit: 1ddf2b4db8c42da36bdccd43dc336eee6ba03cce
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1ddf2b4db8c42da36bdccd43dc336eee6ba03cce

Author: Owen Rudge <orudge at codeweavers.com>
Date:   Mon Mar  6 22:06:19 2017 +0000

gdiplus/tests: Add tests for invalid parameter handling for GdipGetFontHeight.

Signed-off-by: Owen Rudge <orudge at codeweavers.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 827ef2a..dd624a4 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);




More information about the wine-cvs mailing list