Additional fix for r843.

This commit is contained in:
spx 2011-07-04 18:05:07 +00:00
parent 57bf54f9de
commit 9a9edbda2e

View File

@ -1547,7 +1547,8 @@ void RainmeterWriteKeyValueWide(const WCHAR* arg)
if (formula != -1)
{
WCHAR buffer[256];
_snwprintf_s(buffer, _TRUNCATE, L"%f", value);
int len = _snwprintf_s(buffer, _TRUNCATE, L"%.5f", value);
CMeasure::RemoveTrailingZero(buffer, len);
const std::wstring& resultString = buffer;