urlmon: Ignore QueryInterface call for an undocumented interface.

This commit is contained in:
Jacek Caban 2009-07-07 20:15:52 +02:00 committed by Alexandre Julliard
parent c71454db68
commit a21c1f3c31
1 changed files with 6 additions and 0 deletions

View File

@ -853,6 +853,8 @@ static IInternetProtocolSink mime_protocol_sink = { &mime_protocol_sink_vtbl };
static HRESULT QueryInterface(REFIID riid, void **ppv)
{
static const IID IID_undocumented = {0x58DFC7D0,0x5381,0x43E5,{0x9D,0x72,0x4C,0xDD,0xE4,0xCB,0x0F,0x1A}};
*ppv = NULL;
if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IInternetProtocolSink, riid))
@ -862,6 +864,10 @@ static HRESULT QueryInterface(REFIID riid, void **ppv)
if(IsEqualGUID(&IID_IUriContainer, riid))
return E_NOINTERFACE; /* TODO */
/* NOTE: IE8 queries for undocumented {58DFC7D0-5381-43E5-9D72-4CDDE4CB0F1A} interface. */
if(IsEqualGUID(&IID_undocumented, riid))
return E_NOINTERFACE;
if(*ppv)
return S_OK;