[PATCH] Add basic support for InPlaceDeactivate

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Wed Aug 12 00:52:35 CDT 2009


---
 dlls/shdocvw/oleobject.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/shdocvw/oleobject.c b/dlls/shdocvw/oleobject.c
index 962f46a..b502532 100644
--- a/dlls/shdocvw/oleobject.c
+++ b/dlls/shdocvw/oleobject.c
@@ -644,8 +644,14 @@ static HRESULT WINAPI OleInPlaceObject_ContextSensitiveHelp(IOleInPlaceObject *i
 static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate(IOleInPlaceObject *iface)
 {
     WebBrowser *This = INPLACEOBJ_THIS(iface);
-    FIXME("(%p)\n", This);
-    return E_NOTIMPL;
+    TRACE("(%p)\n", This);
+
+    if(This->inplace) {
+        IOleInPlaceSite_Release(This->inplace);
+        This->inplace = NULL;
+    }
+
+    return S_OK;
 }
 
 static HRESULT WINAPI OleInPlaceObject_UIDeactivate(IOleInPlaceObject *iface)
-- 
1.6.2.5


--------------080508020202050908040104--



More information about the wine-patches mailing list