Commit ff0bc51f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Test that IXMLHTTPRequest doesn't support IDispatchEx.

parent 674fb3c0
......@@ -607,13 +607,10 @@ static HRESULT WINAPI httprequest_GetTypeInfo(IXMLHTTPRequest *iface, UINT iTInf
LCID lcid, ITypeInfo **ppTInfo)
{
httprequest *This = impl_from_IXMLHTTPRequest( iface );
HRESULT hr;
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLHTTPRequest_tid, ppTInfo);
return hr;
return get_typeinfo(IXMLHTTPRequest_tid, ppTInfo);
}
static HRESULT WINAPI httprequest_GetIDsOfNames(IXMLHTTPRequest *iface, REFIID riid,
......
......@@ -10671,6 +10671,7 @@ static void test_dispex(void)
IXMLDOMParseError *error;
IXMLDOMNamedNodeMap *map;
IXMLDOMDocument *doc;
IXMLHTTPRequest *req;
IXMLDOMElement *elem;
IDispatchEx *dispex;
IXMLDOMNode *node;
......@@ -10772,6 +10773,17 @@ static void test_dispex(void)
IXMLDOMElement_Release(elem);
IXMLDOMDocument_Release(doc);
/* IXMLHTTPRequest */
hr = CoCreateInstance(&CLSID_XMLHTTPRequest, NULL, CLSCTX_INPROC_SERVER,
&IID_IXMLHttpRequest, (void**)&req);
if (hr == S_OK)
{
hr = IXMLHTTPRequest_QueryInterface(req, &IID_IDispatchEx, (void**)&dispex);
EXPECT_HR(hr, E_NOINTERFACE);
IXMLHTTPRequest_Release(req);
}
free_bstrs();
}
......
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