Jacek Caban : mshtml: Report download failure to necko.
Module: wine Branch: master Commit: 3130898e3927f30801c9acb2fdda7fea3fba758a URL: http://source.winehq.org/git/wine.git/?a=commit;h=3130898e3927f30801c9acb2fd... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Sep 14 00:35:20 2009 +0200 mshtml: Report download failure to necko. --- dlls/mshtml/navigate.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index 1a0d5eb..e8fa949 100644 --- a/dlls/mshtml/navigate.c +++ b/dlls/mshtml/navigate.c @@ -893,20 +893,20 @@ static void on_start_nsrequest(nsChannelBSC *This) FIXME("OnStartRequest failed: %08x\n", nsres); } -static void on_stop_nsrequest(nsChannelBSC *This) +static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result) { nsresult nsres; if(!This->nslistener) return; - if(!This->bsc.readed) { + if(!This->bsc.readed && SUCCEEDED(result)) { TRACE("No data read! Calling OnStartRequest\n"); on_start_nsrequest(This); } nsres = nsIStreamListener_OnStopRequest(This->nslistener, (nsIRequest*)NSCHANNEL(This->nschannel), - This->nscontext, NS_OK); + This->nscontext, SUCCEEDED(result) ? NS_OK : NS_ERROR_FAILURE); if(NS_FAILED(nsres)) WARN("OnStopRequest failed: %08x\n", nsres); } @@ -1030,7 +1030,7 @@ static HRESULT nsChannelBSC_stop_binding(BSCallback *bsc, HRESULT result) { nsChannelBSC *This = NSCHANNELBSC_THIS(bsc); - on_stop_nsrequest(This); + on_stop_nsrequest(This, result); if(This->nslistener) { if(This->nschannel->load_group) {
participants (1)
-
Alexandre Julliard