mshtml: Always use English locale in document_write to perform type conversion.

This commit is contained in:
Jacek Caban 2012-05-14 11:33:10 +02:00 committed by Alexandre Julliard
parent 07e5b87feb
commit 888505d458
1 changed files with 1 additions and 1 deletions

View File

@ -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;