Module: wine Branch: master Commit: 4730205ffbf4ee53dcb5d04db85aec726778024e URL: http://source.winehq.org/git/wine.git/?a=commit;h=4730205ffbf4ee53dcb5d04db8...
Author: Marcus Meissner meissner@suse.de Date: Sun Sep 28 17:15:55 2008 +0200
jscript: Fix number conversion in non-English locales.
---
dlls/jscript/jsutils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/jscript/jsutils.c b/dlls/jscript/jsutils.c index 32b877b..c6f4b9c 100644 --- a/dlls/jscript/jsutils.c +++ b/dlls/jscript/jsutils.c @@ -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;