From 57b1f6cd941da1d60b56742231505fb258c1cb82 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 28 Jan 2013 21:38:30 +0000 Subject: -added frame icon -fixed possible crash -minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@3325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Alarms/src/alarmlist.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Alarms/src/alarmlist.cpp') diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp index 0057cad393..825f754aa1 100644 --- a/plugins/Alarms/src/alarmlist.cpp +++ b/plugins/Alarms/src/alarmlist.cpp @@ -470,7 +470,7 @@ void suspend(unsigned short alarm_id) { SaveAlarms(); } -static int CALLBACK PopupAlarmDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +static LRESULT CALLBACK PopupAlarmDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) { case WM_COMMAND: // snooze @@ -535,14 +535,14 @@ void ShowPopup(ALARM *alarm) { POPUPDATAT ppd = { 0 }; ppd.lchIcon = hIconMenuSet; - lstrcpy(ppd.lptzContactName, data->szTitle); - lstrcpy(ppd.lptzText, data->szDesc); - ppd.PluginWindowProc = (WNDPROC)PopupAlarmDlgProc; + lstrcpyn(ppd.lptzContactName, data->szTitle, MAX_CONTACTNAME); + lstrcpy,(ppd.lptzText, data->szDesc, MAX_SECONDLINE); + ppd.PluginWindowProc = PopupAlarmDlgProc; ppd.PluginData = data; ppd.iSeconds = -1; //Now that every field has been filled, we want to see the popup. - CallService(MS_POPUP_ADDPOPUPEX, (WPARAM)&ppd, 0); + PUAddPopUpT(&ppd); } } -- cgit v1.2.3