[PATCH v2 1/2] msscript: Cache state of IActiveScript in ScriptHost struct.
Nikolay Sivov
nsivov at codeweavers.com
Sat Jun 1 09:54:13 CDT 2019
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.
More information about the wine-devel
mailing list