From c02b46d9876e23ec2d0e7090ba9c61d50b828e7f Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 19 Nov 2007 11:47:06 +0100 Subject: [PATCH] mshtml: Fixed handling channels without container and necko channel. --- dlls/mshtml/nsio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 16ada42bc5..22b30e5fe1 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); -- 2.32.0.93.g670b81a890