Module: wine Branch: refs/heads/master Commit: fd48f795ff3ad9c4fa7cef6e9980454b297b5289 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=fd48f795ff3ad9c4fa7cef6e...
Author: Robert Shearman rob@codeweavers.com Date: Fri Jul 28 01:20:52 2006 +0100
oleaut32: Add a successful test for IFontDisp::Invoke.
---
dlls/oleaut32/tests/olefont.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index 423cb4d..9aea60d 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -431,12 +431,13 @@ static void test_Invoke(void) HRESULT hr; VARIANTARG vararg; DISPPARAMS dispparams; + VARIANT varresult;
hr = pOleCreateFontIndirect(NULL, &IID_IFontDisp, (void **)&fontdisp); - ok_ole_success(hr, "OleCreateFontIndirect\n"); + ok_ole_success(hr, "OleCreateFontIndirect");
V_VT(&vararg) = VT_BOOL; - V_BOOL(&vararg) = FALSE; + V_BOOL(&vararg) = VARIANT_FALSE; dispparams.cNamedArgs = 0; dispparams.rgdispidNamedArgs = NULL; dispparams.cArgs = 1; @@ -455,6 +456,9 @@ static void test_Invoke(void) hr = IFontDisp_Invoke(fontdisp, DISPID_FONT_BOLD, &IID_NULL, 0, DISPATCH_PROPERTYGET, NULL, NULL, NULL, NULL); ok(hr == DISP_E_PARAMNOTOPTIONAL, "IFontDisp_Invoke should have returned DISP_E_PARAMNOTOPTIONAL instead of 0x%08lx\n", hr);
+ hr = IFontDisp_Invoke(fontdisp, DISPID_FONT_BOLD, &IID_NULL, 0, DISPATCH_PROPERTYGET, NULL, &varresult, NULL, NULL); + ok_ole_success(hr, "IFontDisp_Invoke"); + IFontDisp_Release(fontdisp); }