From 888505d458cf77e449039108e578ea48cf5bc5b4 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 14 May 2012 11:33:10 +0200 Subject: [PATCH] mshtml: Always use English locale in document_write to perform type conversion. --- dlls/mshtml/htmldoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index 71f0db9106..6b616da034 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -831,7 +831,7 @@ static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln) if(V_VT(var+i) == VT_BSTR) { nsAString_InitDepend(&nsstr, V_BSTR(var+i)); }else { - hres = VariantChangeType(&tmp, var+i, 0, VT_BSTR); + hres = VariantChangeTypeEx(&tmp, var+i, MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT), 0, VT_BSTR); if(FAILED(hres)) { WARN("Could not convert %s to string\n", debugstr_variant(var+i)); break; -- 2.32.0.93.g670b81a890