diff options
Diffstat (limited to 'plugins/Exchange/src/emails.cpp')
-rw-r--r-- | plugins/Exchange/src/emails.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Exchange/src/emails.cpp b/plugins/Exchange/src/emails.cpp index 96deb1bc26..d737c8494f 100644 --- a/plugins/Exchange/src/emails.cpp +++ b/plugins/Exchange/src/emails.cpp @@ -388,9 +388,9 @@ int ShowPopupMessage(TCHAR *title, TCHAR *message, int cUnreadEmails) popup.colorBack = NULL;
popup.colorText = NULL;
popup.lchIcon = hiMailIcon;
- _tcsncpy(popup.lptzContactName, title,_tcslen(title));
- _tcsncpy(popup.lptzText, message,_tcslen(message));
- popup.PluginWindowProc = (WNDPROC) DlgProcPopup;
+ _tcsncpy(popup.lptzContactName, title, MAX_CONTACTNAME);
+ _tcsncpy(popup.lptzText, message, MAX_SECONDLINE);
+ popup.PluginWindowProc = DlgProcPopup;
popup.PluginData = (int *) cUnreadEmails;
return PUAddPopupT(&popup);
}
@@ -411,7 +411,7 @@ int ShowEmailsWindow(int cUnreadEmails) {
if (!hEmailsDlg)
{
- hEmailsDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_EMAILS), NULL, (DLGPROC)DlgProcEmails);
+ hEmailsDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_EMAILS), NULL, DlgProcEmails);
}
SetWindowLong(hEmailsDlg, GWLP_USERDATA, cUnreadEmails);
|