mshtml: Fix Advise implementation for IPropertyNotifySink.

oldstable
Jacek Caban 2006-08-17 23:16:56 +02:00 committed by Alexandre Julliard
parent e3990ddf7b
commit 572691e685
1 changed files with 3 additions and 4 deletions

View File

@ -128,11 +128,10 @@ static HRESULT WINAPI ConnectionPoint_Advise(IConnectionPoint *iface, IUnknown *
TRACE("(%p)->(%p %p)\n", This, pUnkSink, pdwCookie);
hres = IUnknown_QueryInterface(pUnkSink, &This->iid, (void**)&sink);
if(FAILED(hres) && !IsEqualGUID(&IID_IPropertyNotifySink, &This->iid)) {
if(FAILED(hres) && !IsEqualGUID(&IID_IPropertyNotifySink, &This->iid))
hres = IUnknown_QueryInterface(pUnkSink, &IID_IDispatch, (void**)&sink);
if(FAILED(hres))
return CONNECT_E_CANNOTCONNECT;
}
if(FAILED(hres))
return CONNECT_E_CANNOTCONNECT;
if(This->sinks) {
for(i=0; i<This->sinks_size; i++) {