From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 14:23:31 +0000 Subject: less TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TrafficCounter/src/statistics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TrafficCounter/src/statistics.cpp') diff --git a/plugins/TrafficCounter/src/statistics.cpp b/plugins/TrafficCounter/src/statistics.cpp index cb0f7e3f6d..1815f8544c 100644 --- a/plugins/TrafficCounter/src/statistics.cpp +++ b/plugins/TrafficCounter/src/statistics.cpp @@ -187,7 +187,7 @@ INT_PTR CALLBACK DlgProcOptStatistics(HWND hwndDlg, UINT msg, WPARAM wParam, LPA switch (unOptions.Stat_Tab) { case 0: // Hourly GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &st, NULL, szBufW, 32); - mir_sntprintf(pdi->item.pszText, 32, L"%s %02d:00 - %02d:59", + mir_snwprintf(pdi->item.pszText, 32, L"%s %02d:00 - %02d:59", szBufW, ProtoList[EldestAcc].AllStatistics[Index].Hour, ProtoList[EldestAcc].AllStatistics[Index].Hour); @@ -206,13 +206,13 @@ INT_PTR CALLBACK DlgProcOptStatistics(HWND hwndDlg, UINT msg, WPARAM wParam, LPA vartime += 6; VariantTimeToSystemTime(vartime, &st); GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &st, NULL, szBufW, 32); - mir_sntprintf(pdi->item.pszText, 32, L"%s - %s", pdi->item.pszText, szBufW); + mir_snwprintf(pdi->item.pszText, 32, L"%s - %s", pdi->item.pszText, szBufW); break; case 3: // Monthly GetDateFormat(LOCALE_USER_DEFAULT, DATE_YEARMONTH, &st, NULL, pdi->item.pszText, 32); break; case 4: // Yearly - mir_sntprintf(pdi->item.pszText, 32, L"%d", st.wYear); + mir_snwprintf(pdi->item.pszText, 32, L"%d", st.wYear); break; } return 0; @@ -302,7 +302,7 @@ void Stat_ReadFile(BYTE n) pszPath = Utils_ReplaceVarsT(L"%miranda_userdata%\\statistics"); CreateDirectoryTreeT(pszPath); - mir_sntprintf(FileName, L"%s\\%S.stat", pszPath, ProtoList[n].name); + mir_snwprintf(FileName, L"%s\\%S.stat", pszPath, ProtoList[n].name); mir_free(pszPath); GetLocalTime(&stNow); ProtoList[n].hFile = CreateFile(FileName, GENERIC_READ | GENERIC_WRITE, -- cgit v1.2.3