Jacek Caban : shdocvw: Call EnableModeless and SetStatusText in navigate.

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


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

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

shdocvw: Call EnableModeless and SetStatusText in navigate.

---

 dlls/shdocvw/navigate.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/dlls/shdocvw/navigate.c b/dlls/shdocvw/navigate.c
index a7b05b5..161c138 100644
--- a/dlls/shdocvw/navigate.c
+++ b/dlls/shdocvw/navigate.c
@@ -450,13 +450,19 @@ static HRESULT navigate(DocHost *This, IMoniker *mon, IBindCtx *bindctx)
     if(FAILED(hres))
         return hres;
 
-    if(FAILED(hres)) {
-        IPersistMoniker_Release(persist);
-        return hres;
-    }
+    if(This->frame)
+        IOleInPlaceFrame_EnableModeless(This->frame, FALSE); /* FIXME */
 
     hres = IPersistMoniker_Load(persist, FALSE, mon, bindctx, 0);
     IPersistMoniker_Release(persist);
+
+    if(This->frame) {
+        static const WCHAR empty[] = {0};
+
+        IOleInPlaceFrame_SetStatusText(This->frame, empty); /* FIXME */
+        IOleInPlaceFrame_EnableModeless(This->frame, TRUE); /* FIXME */
+    }
+
     if(FAILED(hres)) {
         WARN("Load failed: %08x\n", hres);
         return hres;




More information about the wine-cvs mailing list