mshtml: Handle aborts synchronously in nsChannelBSC_stop_binding.

This commit is contained in:
Jacek Caban 2011-05-13 18:18:12 +02:00 committed by Alexandre Julliard
parent d7a2da5730
commit af08c97bf9
1 changed files with 8 additions and 6 deletions

View File

@ -1376,12 +1376,14 @@ static HRESULT nsChannelBSC_stop_binding(BSCallback *bsc, HRESULT result)
{
nsChannelBSC *This = nsChannelBSC_from_BSCallback(bsc);
if(FAILED(result))
handle_navigation_error(This, result);
else if(This->window) {
result = async_stop_request(This);
if(SUCCEEDED(result))
return S_OK;
if(result != E_ABORT) {
if(FAILED(result))
handle_navigation_error(This, result);
else if(This->window) {
result = async_stop_request(This);
if(SUCCEEDED(result))
return S_OK;
}
}
on_stop_nsrequest(This, result);