From 779349ab7172e0e0b96cbd8f994c82a5ee45d3f3 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 8 Oct 2012 19:19:53 +0000 Subject: fixed crash on popup preview (fixes #63) git-svn-id: http://svn.miranda-ng.org/main/trunk@1823 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/YAMN/proto/pop3/pop3opt.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'protocols/YAMN/proto/pop3/pop3opt.cpp') 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; -- cgit v1.2.3