msi: Add a test for the version method.
This commit is contained in:
parent
7432a715ed
commit
3ca5f8bbf9
|
@ -170,12 +170,8 @@ static void test_msi_invoke(void)
|
|||
r = IDispatch_Invoke( installer, dispid, &IID_NULL, 0,
|
||||
DISPATCH_METHOD, ¶m, &result, NULL, NULL);
|
||||
todo_wine ok( r == S_OK, "dispatch failed %08x\n", r);
|
||||
if (FAILED(r))
|
||||
if (SUCCEEDED(r))
|
||||
{
|
||||
skip( "failed to create record\n");
|
||||
return;
|
||||
}
|
||||
|
||||
ok( V_VT(&result) == VT_DISPATCH, "type wrong\n");
|
||||
|
||||
record = V_DISPATCH(&result);
|
||||
|
@ -196,6 +192,25 @@ static void test_msi_invoke(void)
|
|||
ok( V_I4(&result) == 1, "field count wrong\n");
|
||||
|
||||
IDispatch_Release( record );
|
||||
}
|
||||
else
|
||||
skip( "failed to create record\n");
|
||||
|
||||
memset( &result, 0, sizeof result );
|
||||
dispid = get_dispid( installer, "Version" );
|
||||
|
||||
param.cArgs = 0;
|
||||
param.cNamedArgs = 0;
|
||||
param.rgvarg = &varg;
|
||||
param.rgdispidNamedArgs = &arg;
|
||||
|
||||
r = IDispatch_Invoke( installer, dispid, &IID_NULL, 0,
|
||||
DISPATCH_PROPERTYGET, ¶m, &result, NULL, NULL );
|
||||
todo_wine {
|
||||
ok( r == S_OK, "dispatch failed %08x\n", r);
|
||||
ok( V_VT(&result) == VT_BSTR, "type wrong %d\n", V_VT(&result));
|
||||
}
|
||||
|
||||
IDispatch_Release( installer );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue