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:
Gabriel Ivăncescu 2020-06-24 17:16:46 +03:00 committed by Alexandre Julliard
parent 1614769407
commit f81862d415
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }