summaryrefslogtreecommitdiff
path: root/plugins/YAMN/src/browser/mailbrowser.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-01-28 15:17:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-01-28 15:17:43 +0000
commit1042a84dd1f01c249a946ec708d3dae2881ecfab (patch)
tree57abc3b99b9bf4a6f4b55500be7aa738eb81cf3a /plugins/YAMN/src/browser/mailbrowser.cpp
parent6c38539e9b3d5a72280950310253759085e96f01 (diff)
atavism removed: CLISTEVENT::cbSize
git-svn-id: http://svn.miranda-ng.org/main/trunk@16180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/src/browser/mailbrowser.cpp')
-rw-r--r--plugins/YAMN/src/browser/mailbrowser.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/plugins/YAMN/src/browser/mailbrowser.cpp b/plugins/YAMN/src/browser/mailbrowser.cpp
index ea390d7cd8..644c849372 100644
--- a/plugins/YAMN/src/browser/mailbrowser.cpp
+++ b/plugins/YAMN/src/browser/mailbrowser.cpp
@@ -638,16 +638,14 @@ void DoMailActions(HWND hDlg, HACCOUNT ActualAccount, struct CMailNumbers *MN, D
char sMsg[250];
mir_snprintf(sMsg, Translate("%s : %d new mail message(s), %d total"), ActualAccount->Name, MN->Real.PopupNC + MN->Virtual.PopupNC, MN->Real.PopupTC + MN->Virtual.PopupTC);
if (!(nflags & YAMN_ACC_CONTNOEVENT)) {
- CLISTEVENT cEvent;
- cEvent.cbSize = sizeof(CLISTEVENT);
- cEvent.hContact = ActualAccount->hContact;
- cEvent.hIcon = g_LoadIconEx(2);
- cEvent.hDbEvent = ActualAccount->hContact;
- cEvent.lParam = ActualAccount->hContact;
- cEvent.pszService = MS_YAMN_CLISTDBLCLICK;
- cEvent.pszTooltip = sMsg;
- cEvent.flags = 0;
- CallServiceSync(MS_CLIST_ADDEVENT, 0, (LPARAM)&cEvent);
+ CLISTEVENT evt = {};
+ evt.hContact = ActualAccount->hContact;
+ evt.hIcon = g_LoadIconEx(2);
+ evt.hDbEvent = ActualAccount->hContact;
+ evt.lParam = ActualAccount->hContact;
+ evt.pszService = MS_YAMN_CLISTDBLCLICK;
+ evt.pszTooltip = sMsg;
+ CallServiceSync(MS_CLIST_ADDEVENT, 0, (LPARAM)&evt);
}
db_set_s(ActualAccount->hContact, "CList", "StatusMsg", sMsg);