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/NewXstatusNotify/src/popup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewXstatusNotify/src/popup.cpp') diff --git a/plugins/NewXstatusNotify/src/popup.cpp b/plugins/NewXstatusNotify/src/popup.cpp index a6346e67d9..2f7e702036 100644 --- a/plugins/NewXstatusNotify/src/popup.cpp +++ b/plugins/NewXstatusNotify/src/popup.cpp @@ -30,7 +30,7 @@ void ShowChangePopup(MCONTACT hContact, HICON hIcon, WORD newStatus, const wchar // add group name to popup title if (opt.ShowGroup) { - ptrT tszGroup(db_get_tsa(hContact, "CList", "Group")); + ptrW tszGroup(db_get_tsa(hContact, "CList", "Group")); if (tszGroup) buf.AppendFormat(L" (%s)", tszGroup); } @@ -77,7 +77,7 @@ static int AwayMsgHook(WPARAM, LPARAM lParam, LPARAM pObj) return 0; MCONTACT hContact = PUGetContact(pdp->hWnd); - ptrT pstzLast(db_get_tsa(hContact, MODULE, "LastPopupText")); + ptrW pstzLast(db_get_tsa(hContact, MODULE, "LastPopupText")); wchar_t *tszStatus = (wchar_t *)ack->lParam; if (tszStatus == NULL || *tszStatus == 0) @@ -85,7 +85,7 @@ static int AwayMsgHook(WPARAM, LPARAM lParam, LPARAM pObj) wchar_t stzText[1024]; if (pstzLast) - mir_sntprintf(stzText, L"%s\n%s", pstzLast, tszStatus); + mir_snwprintf(stzText, L"%s\n%s", pstzLast, tszStatus); else wcsncpy(stzText, tszStatus, _countof(stzText)); SendMessage(pdp->hWnd, WM_SETREDRAW, FALSE, 0); -- cgit v1.2.3