From 1e92565c3e9761777f4c7894abe8cca49d62d147 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 15 Oct 2006 21:16:48 +0200 Subject: [PATCH] mshtml: Load page from moniker if AsyncOpen fails. --- dlls/mshtml/nsio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 2b710e40fbe..46acb670d06 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -644,7 +644,11 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen } } - 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");