1 Jun
2019
1 Jun
'19
2:54 p.m.
On 6/1/19 5:49 PM, Jactry Zeng wrote:
+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; +}
You could move current state check to this helper too.