wshom.ocx: Silence failure to query IDispatchEx from IWshShell3.
This commit is contained in:
parent
fa93dadfa1
commit
f3c805be67
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include "shellapi.h"
|
#include "shellapi.h"
|
||||||
#include "shlobj.h"
|
#include "shlobj.h"
|
||||||
|
#include "dispex.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
|
@ -576,14 +577,21 @@ static HRESULT WINAPI WshShell3_QueryInterface(IWshShell3 *iface, REFIID riid, v
|
||||||
{
|
{
|
||||||
TRACE("(%s, %p)\n", debugstr_guid(riid), ppv);
|
TRACE("(%s, %p)\n", debugstr_guid(riid), ppv);
|
||||||
|
|
||||||
|
*ppv = NULL;
|
||||||
|
|
||||||
if(IsEqualGUID(riid, &IID_IUnknown) ||
|
if(IsEqualGUID(riid, &IID_IUnknown) ||
|
||||||
IsEqualGUID(riid, &IID_IDispatch) ||
|
IsEqualGUID(riid, &IID_IDispatch) ||
|
||||||
IsEqualGUID(riid, &IID_IWshShell3))
|
IsEqualGUID(riid, &IID_IWshShell3))
|
||||||
{
|
{
|
||||||
*ppv = iface;
|
*ppv = iface;
|
||||||
}else {
|
}
|
||||||
|
else if (IsEqualGUID(riid, &IID_IDispatchEx))
|
||||||
|
{
|
||||||
|
return E_NOINTERFACE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
FIXME("Unknown iface %s\n", debugstr_guid(riid));
|
FIXME("Unknown iface %s\n", debugstr_guid(riid));
|
||||||
*ppv = NULL;
|
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue