Commit 2dd3288c authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

After Float->string conversion via sprintfW(), VarDecFromR[4|8] is

forced to use US locale for string->Decimal conversion, to agree with sprintfW().
parent 6be7d751
......@@ -3990,6 +3990,8 @@ HRESULT WINAPI VarDecFromI4(LONG lIn, DECIMAL* pDecOut)
return S_OK;
}
#define LOCALE_EN_US (MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT))
/************************************************************************
* VarDecFromR4 (OLEAUT32.193)
*
......@@ -4007,7 +4009,7 @@ HRESULT WINAPI VarDecFromR4(FLOAT fltIn, DECIMAL* pDecOut)
WCHAR buff[256];
sprintfW( buff, szFloatFormatW, fltIn );
return _VarDecFromStr(buff, LOCALE_SYSTEM_DEFAULT, 0, pDecOut);
return _VarDecFromStr(buff, LOCALE_EN_US, 0, pDecOut);
}
/************************************************************************
......@@ -4027,7 +4029,7 @@ HRESULT WINAPI VarDecFromR8(double dblIn, DECIMAL* pDecOut)
WCHAR buff[256];
sprintfW( buff, szDoubleFormatW, dblIn );
return _VarDecFromStr(buff, LOCALE_USER_DEFAULT, 0, pDecOut);
return _VarDecFromStr(buff, LOCALE_EN_US, 0, pDecOut);
}
/************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment