mshtml: Set loaded script ready state if binding failed.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-07-19 18:40:47 +02:00 committed by Alexandre Julliard
parent 5b1affa446
commit 3a85711a98
1 changed files with 3 additions and 3 deletions

View File

@ -955,10 +955,10 @@ static HRESULT ScriptBSC_stop_binding(BSCallback *bsc, HRESULT result)
if(SUCCEEDED(result) && !This->script_elem)
result = E_UNEXPECTED;
if(SUCCEEDED(result)) {
if(This->script_elem->readystate == READYSTATE_LOADING)
set_script_elem_readystate(This->script_elem, READYSTATE_LOADED);
if(This->script_elem->readystate == READYSTATE_LOADING)
set_script_elem_readystate(This->script_elem, READYSTATE_LOADED);
if(SUCCEEDED(result)) {
script_file_available(This);
}else {
FIXME("binding failed %08x\n", result);