Jacek Caban : mshtml: Fixed handling channels without container and necko channel.

Alexandre Julliard julliard at winehq.org
Tue Nov 20 10:54:49 CST 2007


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Nov 19 11:47:06 2007 +0100

mshtml: Fixed handling channels without container and necko channel.

---

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

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 16ada42..22b30e5 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -761,7 +761,9 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
     nsIWineURI_GetNSContainer(This->uri, &container);
     if(!container) {
         TRACE("container = NULL\n");
-        return nsIChannel_AsyncOpen(This->channel, aListener, aContext);
+        return This->channel
+            ? nsIChannel_AsyncOpen(This->channel, aListener, aContext)
+            : NS_ERROR_UNEXPECTED;
     }
 
     nsIWineURI_GetIsDocumentURI(This->uri, &is_doc_uri);




More information about the wine-cvs mailing list