mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Core dll:
- Replace swprintf/wsprintf/wcscpy/wcscat to _snwprintf_s/wcsncpy_s/wcsncat_s. - Changed printf format parameter strictly for supporting both 32bit and 64bit. - Fixed an issue that !RainmeterWriteKeyValue doesn't accept %APPDATA%\Rainmeter path. - Code cleanup.
This commit is contained in:
@ -673,7 +673,7 @@ void CMeterString::FreeFontCache()
|
||||
std::wstring CMeterString::FontPropertiesToString(FontFamily* fontFamily, REAL size, FontStyle style)
|
||||
{
|
||||
WCHAR ids[128] = {0};
|
||||
swprintf(ids, L"%.1f-%i", size, (int)style);
|
||||
_snwprintf_s(ids, _TRUNCATE, L"%.1f-%i", size, (int)style);
|
||||
|
||||
if (fontFamily)
|
||||
{
|
||||
|
Reference in New Issue
Block a user