diff --git a/dlls/msxml3/queryresult.c b/dlls/msxml3/queryresult.c index 56c1a537674..d38cc19b95b 100644 --- a/dlls/msxml3/queryresult.c +++ b/dlls/msxml3/queryresult.c @@ -340,7 +340,7 @@ static HRESULT queryresult_invoke(IUnknown *iface, DISPID id, LCID lcid, WORD fl IXMLDOMNode *disp = NULL; queryresult_get_item(XMLQUERYRES(This), id - MSXML_DISPID_CUSTOM_MIN, &disp); - V_DISPATCH(res) = (IDispatch*)&disp; + V_DISPATCH(res) = (IDispatch*)disp; break; } default: @@ -350,6 +350,8 @@ static HRESULT queryresult_invoke(IUnknown *iface, DISPID id, LCID lcid, WORD fl } } + TRACE("ret %p\n", V_DISPATCH(res)); + return S_OK; }