From b327ed7872ca83c3a4249039ba1a3d8dd3ece630 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Jan 2017 17:19:19 +0300 Subject: useless field DBEVENTINFO::cbSize removed --- plugins/KeyboardNotify/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/KeyboardNotify/src/main.cpp') diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp index e34ba2ceea..e42c7a939b 100644 --- a/plugins/KeyboardNotify/src/main.cpp +++ b/plugins/KeyboardNotify/src/main.cpp @@ -200,7 +200,7 @@ BOOL checkGlobalXstatus() DBEVENTINFO createMsgEventInfo(MCONTACT hContact) { - DBEVENTINFO einfo = { sizeof(einfo) }; + DBEVENTINFO einfo = {}; einfo.eventType = EVENTTYPE_MESSAGE; einfo.szModule = GetContactProto(hContact); return einfo; @@ -211,7 +211,7 @@ DBEVENTINFO readEventInfo(MEVENT hDbEvent, MCONTACT hContact) if (hDbEvent == NCONVERS_BLINKID) // we need to handle nconvers' blink event return createMsgEventInfo(hContact); - DBEVENTINFO einfo = { sizeof(einfo) }; + DBEVENTINFO einfo = {}; db_event_get(hDbEvent, &einfo); return einfo; } @@ -337,7 +337,7 @@ BOOL checkMsgTimestamp(MCONTACT hContact, MEVENT hEventCurrent, DWORD timestampC return TRUE; for (MEVENT hEvent = db_event_prev(hContact, hEventCurrent); hEvent; hEvent = db_event_prev(hContact, hEvent)) { - DBEVENTINFO einfo = { sizeof(einfo) }; + DBEVENTINFO einfo = {}; if (!db_event_get(hEvent, &einfo)) { if ((einfo.timestamp + wSecondsOlder) <= timestampCurrent) return TRUE; @@ -399,7 +399,7 @@ BOOL checkXstatus(char *szProto) static int PluginMessageEventHook(WPARAM hContact, LPARAM hEvent) { //get DBEVENTINFO without pBlob - DBEVENTINFO einfo = { sizeof(einfo) }; + DBEVENTINFO einfo = {}; if (!db_event_get(hEvent, &einfo) && !(einfo.flags & DBEF_SENT)) if ((einfo.eventType == EVENTTYPE_MESSAGE && bFlashOnMsg && checkOpenWindow(hContact) && checkMsgTimestamp(hContact, hEvent, einfo.timestamp)) || (einfo.eventType == EVENTTYPE_URL && bFlashOnURL) || -- cgit v1.2.3