Jacek Caban : mshtml: Use get_client_disp_property in SetClientSite to get silent property.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 9 15:47:43 CST 2007


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Mar  9 16:48:09 2007 +0100

mshtml: Use get_client_disp_property in SetClientSite to get silent property.

---

 dlls/mshtml/oleobj.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/oleobj.c b/dlls/mshtml/oleobj.c
index 343facc..2689e4c 100644
--- a/dlls/mshtml/oleobj.c
+++ b/dlls/mshtml/oleobj.c
@@ -66,6 +66,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
     HTMLDocument *This = OLEOBJ_THIS(iface);
     IDocHostUIHandler *pDocHostUIHandler = NULL;
     IOleCommandTarget *cmdtrg = NULL;
+    VARIANT silent;
     HRESULT hres;
 
     TRACE("(%p)->(%p)\n", This, pClientSite);
@@ -171,7 +172,15 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
         IOleControl_OnAmbientPropertyChange(CONTROL(This), DISPID_AMBIENT_USERMODE);
 
     IOleControl_OnAmbientPropertyChange(CONTROL(This), DISPID_AMBIENT_OFFLINEIFNOTCONNECTED); 
-    IOleControl_OnAmbientPropertyChange(CONTROL(This), DISPID_AMBIENT_SILENT);
+
+    hres = get_client_disp_property(This->client, DISPID_AMBIENT_SILENT, &silent);
+    if(SUCCEEDED(hres)) {
+        if(V_VT(&silent) != VT_BOOL)
+            WARN("V_VT(silent) = %d\n", V_VT(&silent));
+        else if(V_BOOL(&silent))
+            FIXME("silent == true\n");
+    }
+
     IOleControl_OnAmbientPropertyChange(CONTROL(This), DISPID_AMBIENT_USERAGENT);
     IOleControl_OnAmbientPropertyChange(CONTROL(This), DISPID_AMBIENT_PALETTE);
 




More information about the wine-cvs mailing list