From 428bf0cbd77813a43094cb5c984436deff251936 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Jul 2016 12:36:34 +0000 Subject: no more TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Sessions/Src/Utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Sessions/Src/Utils.cpp') diff --git a/plugins/Sessions/Src/Utils.cpp b/plugins/Sessions/Src/Utils.cpp index 5b0fe2e88a..c0f2e5ea90 100644 --- a/plugins/Sessions/Src/Utils.cpp +++ b/plugins/Sessions/Src/Utils.cpp @@ -231,8 +231,8 @@ BOOL ResaveSettings(char *szName, int iFirst, int iLimit, wchar_t *szBuffer) char szNameBuf[256]; mir_snprintf(szNameBuf, "%s_%u", szName, i); - wchar_t *ptszTemp = db_get_tsa(NULL, MODNAME, szNameBuf); - db_set_ts(NULL, MODNAME, szNameBuf, szBuffer); + wchar_t *ptszTemp = db_get_wsa(NULL, MODNAME, szNameBuf); + db_set_ws(NULL, MODNAME, szNameBuf, szBuffer); mir_free(szBuffer); BYTE marked = IsMarkedUserDefSession(i); @@ -298,7 +298,7 @@ int LoadSessionToCombobox(HWND hdlg, BOOL mode, int iLimit, char* pszSetting, in for (int i = 0; i < iLimit; i++) { mir_snprintf(szBuffer, "%s_%u", pszSetting, i); - wchar_t *pszBuffer = db_get_tsa(NULL, MODNAME, szBuffer); + wchar_t *pszBuffer = db_get_wsa(NULL, MODNAME, szBuffer); if (pszBuffer) { if (!IsMarkedUserDefSession(i + iFirstNum) || mode == 1) { index = SendDlgItemMessage(hdlg, IDC_LIST, CB_ADDSTRING, 0, (LPARAM)pszBuffer); @@ -327,7 +327,7 @@ int FillFavoritesMenu(HMENU hMenu, int iLimit) if (IsMarkedUserDefSession(i)) { char szBuffer[256]; mir_snprintf(szBuffer, "%s_%u", "UserSessionDsc", i); - wchar_t *pszBuffer = db_get_tsa(NULL, MODNAME, szBuffer); + wchar_t *pszBuffer = db_get_wsa(NULL, MODNAME, szBuffer); if (pszBuffer) { AppendMenu(hMenu, MF_STRING, i + 1, pszBuffer); iItems++; @@ -362,7 +362,7 @@ void RenameUserDefSession(int ses_count, wchar_t* ptszNewName) { char szSession[256]; mir_snprintf(szSession, "%s_%u", "UserSessionDsc", ses_count); - db_set_ts(NULL, MODNAME, szSession, ptszNewName); + db_set_ws(NULL, MODNAME, szSession, ptszNewName); } int MarkUserDefSession(int ses_count, BYTE bCheck) -- cgit v1.2.3