From 9985f50389f924ec92fe5b9c5b32404d13a2f940 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 28 Jul 2006 01:23:01 +0100 Subject: [PATCH] oleaut32: Add a test for passing an invalid number of input parameters into IFontDisp::Invoke with DISPATCH_PROPERTYGET. --- dlls/oleaut32/tests/olefont.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index e98e84c5e5b..341ef61ffdf 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -465,6 +465,11 @@ static void test_Invoke(void) hr = IFontDisp_Invoke(fontdisp, 0xdeadbeef, &IID_NULL, 0, DISPATCH_PROPERTYGET, NULL, &varresult, NULL, NULL); ok(hr == DISP_E_MEMBERNOTFOUND, "IFontDisp_Invoke should have returned DISP_E_MEMBERNOTFOUND instead of 0x%08lx\n", hr); + dispparams.cArgs = 1; + dispparams.rgvarg = &vararg; + hr = IFontDisp_Invoke(fontdisp, DISPID_FONT_BOLD, &IID_NULL, 0, DISPATCH_PROPERTYGET, &dispparams, &varresult, NULL, NULL); + ok_ole_success(hr, "IFontDisp_Invoke"); + IFontDisp_Release(fontdisp); }