summaryrefslogtreecommitdiff
path: root/plugins/Exchange/src/emails.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-08-12 22:25:40 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-08-12 22:25:40 +0000
commitaf89bddd5ba9f68936dbad0a560c82b7ace9da1c (patch)
treee64ebfc57a6fc7b0052b6cfcaba7f3562ad152cb /plugins/Exchange/src/emails.cpp
parent858fb2dfc3f198d5c0c861528115411d4d6904d6 (diff)
- minor x64 fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5666 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Exchange/src/emails.cpp')
-rw-r--r--plugins/Exchange/src/emails.cpp8
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);