summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-10-08 19:19:53 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-10-08 19:19:53 +0000
commit779349ab7172e0e0b96cbd8f994c82a5ee45d3f3 (patch)
treedad176eabef1bc8e2cda509624bd5aa21dd3a79b /protocols
parent864081102a5f252415f41950b3039a896b4ae9c5 (diff)
fixed crash on popup preview (fixes #63)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1823 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/YAMN/proto/pop3/pop3opt.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/YAMN/proto/pop3/pop3opt.cpp b/protocols/YAMN/proto/pop3/pop3opt.cpp
index 9d72d4a174..1a265a0800 100644
--- a/protocols/YAMN/proto/pop3/pop3opt.cpp
+++ b/protocols/YAMN/proto/pop3/pop3opt.cpp
@@ -1343,12 +1343,12 @@ INT_PTR CALLBACK DlgProcPOP3AccPopup(HWND hDlg,UINT msg,WPARAM wParam,LPARAM lPa
TesterF.lchIcon=g_LoadIconEx(3);
TesterN.lchIcon=g_LoadIconEx(1);
- lstrcpy(Tester.lptzContactName,TranslateT("Account Test"));
- lstrcpy(TesterF.lptzContactName,TranslateT("Account Test (failed)"));
- lstrcpy(TesterN.lptzContactName,TranslateT("Account Test"));
- lstrcpy(Tester.lptzText,TranslateT("You have N new mail messages"));
- lstrcpy(TesterF.lptzText,TranslateT("Connection failed message"));
- lstrcpy(TesterN.lptzText,TranslateT("No new mail message"));
+ lstrcpyn(Tester.lptzContactName,TranslateT("Account Test"),MAX_CONTACTNAME);
+ lstrcpyn(TesterF.lptzContactName,TranslateT("Account Test (failed)"),MAX_CONTACTNAME);
+ lstrcpyn(TesterN.lptzContactName,TranslateT("Account Test"),MAX_CONTACTNAME);
+ lstrcpyn(Tester.lptzText,TranslateT("You have N new mail messages"),MAX_SECONDLINE);
+ lstrcpyn(TesterF.lptzText,TranslateT("Connection failed message"),MAX_SECONDLINE);
+ lstrcpyn(TesterN.lptzText,TranslateT("No new mail message"),MAX_SECONDLINE);
if (TesterC)
{
Tester.colorBack=SendDlgItemMessage(hDlg,IDC_CPB,CPM_GETCOLOUR,0,0);
@@ -1387,11 +1387,11 @@ INT_PTR CALLBACK DlgProcPOP3AccPopup(HWND hDlg,UINT msg,WPARAM wParam,LPARAM lPa
TesterN.PluginData=NULL;
if (IsDlgButtonChecked(hDlg,IDC_CHECKPOP)==BST_CHECKED)
- CallService(MS_POPUP_ADDPOPUP,(WPARAM)&Tester,0);
+ PUAddPopUpT(&Tester);
if (IsDlgButtonChecked(hDlg,IDC_CHECKFPOP)==BST_CHECKED)
- CallService(MS_POPUP_ADDPOPUP,(WPARAM)&TesterF,0);
+ PUAddPopUpT(&TesterF);
if (IsDlgButtonChecked(hDlg,IDC_CHECKNPOP)==BST_CHECKED)
- CallService(MS_POPUP_ADDPOPUP,(WPARAM)&TesterN,0);
+ PUAddPopUpT(&TesterN);
Changed=TRUE;
}
break;