vbscript: Store lcid only in script context.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-10-18 16:20:23 +02:00 committed by Alexandre Julliard
parent ad8917c6b7
commit 7665051d67
1 changed files with 1 additions and 4 deletions

View File

@ -55,7 +55,6 @@ struct VBScript {
IActiveScriptSite *site;
script_ctx_t *ctx;
LONG thread_id;
LCID lcid;
BOOL is_initialized;
};
@ -134,8 +133,6 @@ static HRESULT set_ctx_site(VBScript *This)
{
HRESULT hres;
This->ctx->lcid = This->lcid;
hres = init_global(This->ctx);
if(FAILED(hres))
return hres;
@ -435,7 +432,7 @@ static HRESULT WINAPI VBScript_SetScriptSite(IActiveScript *iface, IActiveScript
hres = IActiveScriptSite_GetLCID(This->site, &lcid);
if(hres == S_OK)
This->lcid = lcid;
This->ctx->lcid = lcid;
return This->is_initialized ? set_ctx_site(This) : S_OK;
}