jscript: Fix number conversion in non-English locales.
This commit is contained in:
parent
db447d0f66
commit
4730205ffb
@ -458,7 +458,7 @@ HRESULT to_string(script_ctx_t *ctx, VARIANT *v, jsexcept_t *ei, BSTR *str)
|
|||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
V_VT(&strv) = VT_EMPTY;
|
V_VT(&strv) = VT_EMPTY;
|
||||||
hres = VariantChangeType(&strv, v, 0, VT_BSTR);
|
hres = VariantChangeTypeEx(&strv, v, MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT), 0, VT_BSTR);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user