oleaut32: Don't assume that SAFEARRAY is the last parameter in an varargs method.
This commit is contained in:
parent
f05930f0ce
commit
755feaca39
|
@ -1550,7 +1550,6 @@ static void test_typelibmarshal(void)
|
|||
dispparams.rgdispidNamedArgs = NULL;
|
||||
dispparams.rgvarg = vararg;
|
||||
hr = IDispatch_Invoke(pDispatch, DISPID_TM_VARARG_RUN, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dispparams, NULL, NULL, NULL);
|
||||
todo_wine
|
||||
ok_ole_success(hr, IDispatch_Invoke);
|
||||
SysFreeString(V_BSTR(&vararg[1]));
|
||||
SysFreeString(V_BSTR(&vararg[0]));
|
||||
|
|
|
@ -7078,7 +7078,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
|
|||
}
|
||||
V_VT(&rgvarg[i]) = rgvt[i];
|
||||
}
|
||||
else if (rgvt[i] == (VT_VARIANT | VT_ARRAY) && func_desc->cParamsOpt < 0 && i == func_desc->cParams-1)
|
||||
else if (rgvt[i] == (VT_VARIANT | VT_ARRAY) && func_desc->cParamsOpt < 0)
|
||||
{
|
||||
SAFEARRAY *a;
|
||||
SAFEARRAYBOUND bound;
|
||||
|
|
Loading…
Reference in New Issue