mshtml: Fixed handling channels without container and necko channel.

This commit is contained in:
Jacek Caban 2007-11-19 11:47:06 +01:00 committed by Alexandre Julliard
parent 9ae9109d39
commit c02b46d987
1 changed files with 3 additions and 1 deletions

View File

@ -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);