jscript: Fix number conversion in non-English locales.

This commit is contained in:
Marcus Meissner 2008-09-28 17:15:55 +02:00 committed by Alexandre Julliard
parent db447d0f66
commit 4730205ffb
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ HRESULT to_string(script_ctx_t *ctx, VARIANT *v, jsexcept_t *ei, BSTR *str)
HRESULT hres;
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))
return hres;