Hi Gabriel,
On 02.09.2020 15:01, Gabriel Ivăncescu wrote:
@@ -2481,6 +2486,7 @@ static HRESULT init_script_host(ScriptControl *control, const CLSID *clsid, Scri goto failed; } host->script_state = SCRIPTSTATE_INITIALIZED;
- host->site_hwnd = (control->allow_ui == VARIANT_FALSE) ? -1 : control->site_hwnd;
Please avoid direct comparisons of bool-like values. consol->allow_ui ? ... : ...; would be nicer.
Thanks,
Jacek