mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Tweaks
This commit is contained in:
parent
4cecb4957e
commit
14fb733a8f
@ -1150,8 +1150,8 @@ INT_PTR CDialogAbout::CTabVersion::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
case IDC_ABOUTVERSION_COPY_BUTTON:
|
case IDC_ABOUTVERSION_COPY_BUTTON:
|
||||||
{
|
{
|
||||||
WCHAR tmpSz[64];
|
WCHAR tmpSz[64];
|
||||||
_snwprintf_s(tmpSz, _TRUNCATE, L"%s%s r%i %s (%s)", APPVERSION, revision_beta ? L" beta" : L"", revision_number, APPBITS, APPDATE);
|
int len = _snwprintf_s(tmpSz, _TRUNCATE, L"%s%s r%i %s (%s)", APPVERSION, revision_beta ? L" beta" : L"", revision_number, APPBITS, APPDATE);
|
||||||
std::wstring text = tmpSz;
|
std::wstring text(tmpSz, len);
|
||||||
text += L"\nPath: ";
|
text += L"\nPath: ";
|
||||||
text += Rainmeter->GetPath();
|
text += Rainmeter->GetPath();
|
||||||
text += L"\nIniFile: ";
|
text += L"\nIniFile: ";
|
||||||
|
@ -331,7 +331,7 @@ std::wstring GetFormattedString(UINT id, ...)
|
|||||||
|
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
std::wstring tmpSz(len ? pBuffer : L"");
|
std::wstring tmpSz(len ? pBuffer : L"", len);
|
||||||
if (pBuffer) LocalFree(pBuffer);
|
if (pBuffer) LocalFree(pBuffer);
|
||||||
return tmpSz;
|
return tmpSz;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user