mshtml: Handle DISPATCH_CONSTRUCT flag for DispatchEx objects.

This commit is contained in:
Andrew Eikum 2009-10-21 16:25:14 -05:00 committed by Alexandre Julliard
parent 5116dca8e1
commit 753aa4ca98
1 changed files with 10 additions and 2 deletions

View File

@ -804,8 +804,16 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
return This->data->vtbl->invoke(This->outer, id, lcid, wFlags, pdp, pvarRes, pei, pspCaller); return This->data->vtbl->invoke(This->outer, id, lcid, wFlags, pdp, pvarRes, pei, pspCaller);
if(wFlags == DISPATCH_CONSTRUCT) { if(wFlags == DISPATCH_CONSTRUCT) {
FIXME("DISPATCH_CONSTRUCT not implemented\n"); if(id == DISPID_VALUE) {
return E_NOTIMPL; if(This->data->vtbl && This->data->vtbl->value) {
return This->data->vtbl->value(This->outer, lcid, wFlags, pdp,
pvarRes, pei, pspCaller);
}
FIXME("DISPATCH_CONSTRUCT flag but missing value function\n");
return E_FAIL;
}
FIXME("DISPATCH_CONSTRUCT flag without DISPID_VALUE\n");
return E_FAIL;
} }
if(is_dynamic_dispid(id)) { if(is_dynamic_dispid(id)) {