mshtml: Always use English locale in document_write to perform type conversion.
This commit is contained in:
parent
07e5b87feb
commit
888505d458
|
@ -831,7 +831,7 @@ static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln)
|
||||||
if(V_VT(var+i) == VT_BSTR) {
|
if(V_VT(var+i) == VT_BSTR) {
|
||||||
nsAString_InitDepend(&nsstr, V_BSTR(var+i));
|
nsAString_InitDepend(&nsstr, V_BSTR(var+i));
|
||||||
}else {
|
}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)) {
|
if(FAILED(hres)) {
|
||||||
WARN("Could not convert %s to string\n", debugstr_variant(var+i));
|
WARN("Could not convert %s to string\n", debugstr_variant(var+i));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue