mshtml: Notify the Gecko stream listener that we stopped binding, if an error occurs in start_binding.

This commit is contained in:
Rob Shearman 2007-06-24 09:23:10 +01:00 committed by Alexandre Julliard
parent 860d30eef2
commit f6daa34857

View File

@ -796,6 +796,8 @@ HRESULT start_binding(BSCallback *bscallback)
hres = CreateAsyncBindCtx(0, STATUSCLB(bscallback), NULL, &bctx);
if(FAILED(hres)) {
WARN("CreateAsyncBindCtx failed: %08x\n", hres);
nsIStreamListener_OnStopRequest(bscallback->nslistener, (nsIRequest*)NSCHANNEL(bscallback->nschannel),
bscallback->nscontext, NS_OK);
return hres;
}
@ -803,6 +805,8 @@ HRESULT start_binding(BSCallback *bscallback)
IBindCtx_Release(bctx);
if(FAILED(hres)) {
WARN("BindToStorage failed: %08x\n", hres);
nsIStreamListener_OnStopRequest(bscallback->nslistener, (nsIRequest*)NSCHANNEL(bscallback->nschannel),
bscallback->nscontext, NS_OK);
return hres;
}