Robert Shearman : oleaut32: Add a test for passing an invalid number of input parameters into IFontDisp ::Invoke with DISPATCH_PROPERTYGET.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 28 07:15:26 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 9985f50389f924ec92fe5b9c5b32404d13a2f940
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=9985f50389f924ec92fe5b9c5b32404d13a2f940

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Jul 28 01:23:01 2006 +0100

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 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c
index e98e84c..341ef61 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);
 }
 




More information about the wine-cvs mailing list