mshtml/tests: Fix XHR tests on some IE versions.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-08-12 14:16:59 +02:00 committed by Alexandre Julliard
parent d2f5eaf916
commit 0992aaab9c
1 changed files with 5 additions and 8 deletions

View File

@ -141,17 +141,14 @@ static void _test_event_args(unsigned line, const IID *dispiid, const IID *broke
static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid, void **ppv)
{
*ppv = NULL;
if(IsEqualGUID(riid, &IID_IUnknown)
|| IsEqualGUID(riid, &IID_IDispatch)
|| IsEqualGUID(riid, &IID_IDispatchEx))
*ppv = iface;
else {
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
if(!IsEqualGUID(riid, &IID_IUnknown)
&& !IsEqualGUID(riid, &IID_IDispatch)
&& !IsEqualGUID(riid, &IID_IDispatchEx)) {
*ppv = NULL;
return E_NOINTERFACE;
}
*ppv = iface;
return S_OK;
}