summaryrefslogtreecommitdiff
path: root/plugins/Alarms/src/alarmlist.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-01-28 21:38:30 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-01-28 21:38:30 +0000
commit57b1f6cd941da1d60b56742231505fb258c1cb82 (patch)
treee7ea69163fdae89b226f6ea54cd9678d84d7b423 /plugins/Alarms/src/alarmlist.cpp
parent705f46a1f1201ad4a6fbcbb163db373c2b29f0d3 (diff)
-added frame icon
-fixed possible crash -minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@3325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms/src/alarmlist.cpp')
-rw-r--r--plugins/Alarms/src/alarmlist.cpp10
1 files changed, 5 insertions, 5 deletions
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);
}
}