mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional fix for r843.
This commit is contained in:
parent
57bf54f9de
commit
9a9edbda2e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user