Commit f6daa348 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

mshtml: Notify the Gecko stream listener that we stopped binding, if an error…

mshtml: Notify the Gecko stream listener that we stopped binding, if an error occurs in start_binding.
parent 860d30ee
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment