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/HistoryLinkListPlus/src/linklist.cpp | 2 +- plugins/HistoryLinkListPlus/src/linklist_fct.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/HistoryLinkListPlus') diff --git a/plugins/HistoryLinkListPlus/src/linklist.cpp b/plugins/HistoryLinkListPlus/src/linklist.cpp index aa22ba632d..b4e8ed3867 100644 --- a/plugins/HistoryLinkListPlus/src/linklist.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist.cpp @@ -132,7 +132,7 @@ static INT_PTR LinkList_Main(WPARAM hContact, LPARAM) int histCount = db_event_count(hContact), actCount = 0; - DBEVENTINFO dbe = { sizeof(dbe) }; + DBEVENTINFO dbe = {}; dbe.cbBlob = db_event_getBlobSize(hEvent); dbe.pBlob = (PBYTE)mir_alloc(dbe.cbBlob + 1); db_event_get(hEvent, &dbe); diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp index b634534e39..82599582d1 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp @@ -378,7 +378,7 @@ void WriteLinkList(HWND hDlg, BYTE params, LISTELEMENT *listStart, LPCTSTR searc // Perform deep scan if ( actualElement->hEvent != NULL ) { - DBEVENTINFO dbe = { sizeof(dbe) }; + DBEVENTINFO dbe = {}; dbe.cbBlob = db_event_getBlobSize(actualElement->hEvent); dbe.pBlob = (PBYTE)mir_alloc(dbe.cbBlob+1); db_event_get(actualElement->hEvent, &dbe); @@ -612,7 +612,7 @@ void WriteMessage(HWND hDlg, LISTELEMENT *listStart, int actLinePos) if (actualElement->linePos == actLinePos) { MEVENT hEvent = actualElement->hEvent; if (hEvent != NULL ) { - DBEVENTINFO dbe = { sizeof(dbe) }; + DBEVENTINFO dbe = {}; dbe.cbBlob = db_event_getBlobSize(hEvent); dbe.pBlob = (PBYTE)mir_alloc(dbe.cbBlob+1); db_event_get(hEvent, &dbe); @@ -769,7 +769,7 @@ void GetListInfo(BYTE params, LISTELEMENT *listStart, LPCTSTR searchString, siz // Perform deep scan if ( actualElement->hEvent != NULL ) { - DBEVENTINFO dbe = { sizeof(dbe) }; + DBEVENTINFO dbe = {}; dbe.cbBlob = db_event_getBlobSize(actualElement->hEvent); dbe.pBlob = (PBYTE)mir_alloc(dbe.cbBlob+1); db_event_get(actualElement->hEvent, &dbe); @@ -1179,7 +1179,7 @@ int DBUpdate(WPARAM wParam, LPARAM hEvent) return 0; if(hDlg) { - DBEVENTINFO dbe = { sizeof(dbe) }; + DBEVENTINFO dbe = {}; dbe.cbBlob = db_event_getBlobSize(hEvent); dbe.pBlob = (PBYTE)mir_alloc((size_t)dbe.cbBlob+1); db_event_get(hEvent, &dbe); -- cgit v1.2.3