msscript.ocx: Fix detaching the script host in put_Language.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1614769407
commit
f81862d415
|
@ -1203,8 +1203,8 @@ static HRESULT WINAPI ScriptControl_put_Language(IScriptControl *iface, BSTR lan
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (FAILED(hres)) {
|
if (FAILED(hres)) {
|
||||||
This->host = NULL;
|
|
||||||
detach_script_host(This->host);
|
detach_script_host(This->host);
|
||||||
|
This->host = NULL;
|
||||||
}
|
}
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue