Commit ec2a78c3 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

shlwapi: DISPPARAMS on Invoke are never NULL.

parent 3dbc0b06
......@@ -2930,18 +2930,24 @@ static HRESULT SHLWAPI_InvokeByIID(
{
IEnumConnections *enumerator;
CONNECTDATA rgcd;
static DISPPARAMS empty = {NULL, NULL, 0, 0};
DISPPARAMS* params = dispParams;
HRESULT result = IConnectionPoint_EnumConnections(iCP, &enumerator);
if (FAILED(result))
return result;
/* Invoke is never happening with an NULL dispParams */
if (!params)
params = ∅
while(IEnumConnections_Next(enumerator, 1, &rgcd, NULL)==S_OK)
{
IDispatch *dispIface;
if ((iid && SUCCEEDED(IUnknown_QueryInterface(rgcd.pUnk, iid, (LPVOID*)&dispIface))) ||
SUCCEEDED(IUnknown_QueryInterface(rgcd.pUnk, &IID_IDispatch, (LPVOID*)&dispIface)))
{
IDispatch_Invoke(dispIface, dispId, &IID_NULL, 0, DISPATCH_METHOD, dispParams, NULL, NULL, NULL);
IDispatch_Invoke(dispIface, dispId, &IID_NULL, 0, DISPATCH_METHOD, params, NULL, NULL, NULL);
IDispatch_Release(dispIface);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment