Commit 1ddf2b4d authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

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

parent 36c9ac39
...@@ -546,6 +546,12 @@ static void gdip_get_font_metrics(GpFont *font, struct font_metrics *fm) ...@@ -546,6 +546,12 @@ static void gdip_get_font_metrics(GpFont *font, struct font_metrics *fm)
stat = GdipGetFontStyle(font, &style); stat = GdipGetFontStyle(font, &style);
expect(Ok, stat); 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); stat = GdipGetFontHeight(font, NULL, &fm->font_height);
expect(Ok, stat); expect(Ok, stat);
stat = GdipGetFontSize(font, &fm->font_size); stat = GdipGetFontSize(font, &fm->font_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment