summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-06-14 16:51:56 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-06-14 16:51:56 +0000
commit0aca46cda688ce0042fd3da214cd71d699302168 (patch)
tree8fed7aa780555756ea99b379cf1c5447aeed2451
parent3f38d0c43e5658ddbd77c9f0285022a8f7ae0e10 (diff)
unicode popup
git-svn-id: http://svn.miranda-ng.org/main/trunk@9475 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Tlen/src/tlen_opt.cpp8
-rw-r--r--protocols/Tlen/src/tlen_thread.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Tlen/src/tlen_opt.cpp b/protocols/Tlen/src/tlen_opt.cpp
index ad8645f2e1..b4672b549c 100644
--- a/protocols/Tlen/src/tlen_opt.cpp
+++ b/protocols/Tlen/src/tlen_opt.cpp
@@ -565,17 +565,17 @@ static INT_PTR CALLBACK TlenAdvOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,
static void MailPopupPreview(DWORD colorBack, DWORD colorText, char *title, char *emailInfo, int delay)
{
- POPUPDATA ppd = { 0 };
+ POPUPDATAT ppd = { 0 };
HICON hIcon = GetIcolibIcon(IDI_MAIL);
ppd.lchIcon = CopyIcon(hIcon);
ReleaseIcolibIcon(hIcon);
- strcpy(ppd.lpzContactName, title);
- strcpy(ppd.lpzText, emailInfo);
+ _tcscpy(ppd.lptzContactName, _A2T(title));
+ _tcscpy(ppd.lptzText, _A2T(emailInfo));
ppd.colorBack = colorBack;
ppd.colorText = colorText;
ppd.iSeconds = delay;
if ( ServiceExists(MS_POPUP_ADDPOPUPT))
- PUAddPopup(&ppd);
+ PUAddPopupT(&ppd);
}
static INT_PTR CALLBACK TlenPopupsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp
index 081be0df02..0f4a9f8143 100644
--- a/protocols/Tlen/src/tlen_thread.cpp
+++ b/protocols/Tlen/src/tlen_thread.cpp
@@ -1051,10 +1051,10 @@ static void TlenMailPopup(TlenProtocol *proto, char *title, char *emailInfo)
if (!db_get_b(NULL, proto->m_szModuleName, "MailPopupEnabled", TRUE))
return;
- POPUPDATA ppd = { 0 };
+ POPUPDATAT ppd = { 0 };
ppd.lchIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_MAIL));
- strcpy(ppd.lpzContactName, title);
- strcpy(ppd.lpzText, emailInfo);
+ _tcscpy(ppd.lptzContactName, _A2T(title));
+ _tcscpy(ppd.lptzText, _A2T(emailInfo));
ppd.colorBack = db_get_dw(NULL, proto->m_szModuleName, "MailPopupBack", 0);
ppd.colorText = db_get_dw(NULL, proto->m_szModuleName, "MailPopupText", 0);
BYTE delayMode = db_get_b(NULL, proto->m_szModuleName, "MailPopupDelayMode", 0);
@@ -1062,7 +1062,7 @@ static void TlenMailPopup(TlenProtocol *proto, char *title, char *emailInfo)
ppd.iSeconds = db_get_dw(NULL, proto->m_szModuleName, "MailPopupDelay", 4);
else if (delayMode == 2)
ppd.iSeconds = -1;
- PUAddPopup(&ppd);
+ PUAddPopupT(&ppd);
}
/*
* Incoming e-mail notification