msscript.ocx: Move set_script_state to the top.
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
392648dda2
commit
e076f84ccc
|
@ -200,6 +200,16 @@ static struct named_item *host_get_named_item(ScriptHost *host, const WCHAR *nam
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static HRESULT set_script_state(ScriptHost *host, SCRIPTSTATE state)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
hr = IActiveScript_SetScriptState(host->script, state);
|
||||
if (SUCCEEDED(hr))
|
||||
host->script_state = state;
|
||||
return hr;
|
||||
}
|
||||
|
||||
static inline ScriptControl *impl_from_IScriptControl(IScriptControl *iface)
|
||||
{
|
||||
return CONTAINING_RECORD(iface, ScriptControl, IScriptControl_iface);
|
||||
|
@ -954,16 +964,6 @@ static HRESULT WINAPI ScriptControl_AddObject(IScriptControl *iface, BSTR name,
|
|||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT set_script_state(ScriptHost *host, SCRIPTSTATE state)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
hr = IActiveScript_SetScriptState(host->script, state);
|
||||
if (SUCCEEDED(hr))
|
||||
host->script_state = state;
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI ScriptControl_Reset(IScriptControl *iface)
|
||||
{
|
||||
ScriptControl *This = impl_from_IScriptControl(iface);
|
||||
|
|
Loading…
Reference in New Issue