Jacek Caban : mshtml: Fix Advise implementation for IPropertyNotifySink.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 18 05:40:20 CDT 2006


Module: wine
Branch: master
Commit: 572691e68588edc7300a702833393ed126016960
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=572691e68588edc7300a702833393ed126016960

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Aug 17 23:16:56 2006 +0200

mshtml: Fix Advise implementation for IPropertyNotifySink.

---

 dlls/mshtml/conpoint.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/mshtml/conpoint.c b/dlls/mshtml/conpoint.c
index f668e18..db66160 100644
--- a/dlls/mshtml/conpoint.c
+++ b/dlls/mshtml/conpoint.c
@@ -128,11 +128,10 @@ static HRESULT WINAPI ConnectionPoint_Ad
     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++) {




More information about the wine-cvs mailing list