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/IEHistory/src/dlgHandlers.cpp | 3 +-- plugins/IEHistory/src/utils.cpp | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/IEHistory/src') diff --git a/plugins/IEHistory/src/dlgHandlers.cpp b/plugins/IEHistory/src/dlgHandlers.cpp index f88f3f09d9..3b15a902f1 100644 --- a/plugins/IEHistory/src/dlgHandlers.cpp +++ b/plugins/IEHistory/src/dlgHandlers.cpp @@ -172,8 +172,7 @@ DWORD WINAPI WorkerThread(LPVOID lpvData) IEVIEWEVENT ieEvent = data->ieEvent; ieEvent.iType = IEE_LOG_MEM_EVENTS; ieEvent.eventData = ieData; - DBEVENTINFO dbInfo = { 0 }; - dbInfo.cbSize = sizeof(DBEVENTINFO); + DBEVENTINFO dbInfo = {}; PBYTE buffer = NULL; int newSize, oldSize = 0; while (count < target) { diff --git a/plugins/IEHistory/src/utils.cpp b/plugins/IEHistory/src/utils.cpp index d3a656f1c6..125f861aba 100644 --- a/plugins/IEHistory/src/utils.cpp +++ b/plugins/IEHistory/src/utils.cpp @@ -216,9 +216,7 @@ SearchResult SearchHistory(MCONTACT contact, MEVENT hFirstEvent, void *searchDat int oldSize, newSize; oldSize = newSize = 0; - DBEVENTINFO dbEvent = { 0 }; - dbEvent.cbSize = sizeof(dbEvent); - + DBEVENTINFO dbEvent = {}; while ((!found) && (hEvent)){ newSize = db_event_getBlobSize(hEvent); if (newSize > oldSize) -- cgit v1.2.3