Jacek Caban : mshtml: Load page from moniker if AsyncOpen fails.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 16 05:28:40 CDT 2006


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Oct 15 21:16:48 2006 +0200

mshtml: Load page from moniker if AsyncOpen fails.

---

 dlls/mshtml/nsio.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 2b710e4..46acb67 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -644,7 +644,11 @@ static nsresult NSAPI nsChannel_AsyncOpe
             }
         }
 
-        return nsIChannel_AsyncOpen(This->channel, aListener, aContext);
+        nsres = nsIChannel_AsyncOpen(This->channel, aListener, aContext);
+
+        if(NS_FAILED(nsres) && (This->load_flags & LOAD_INITIAL_DOCUMENT_URI))
+            return WINE_NS_LOAD_FROM_MONIKER;
+        return nsres;
     }
 
     TRACE("channel == NULL\n");




More information about the wine-cvs mailing list