summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-17 17:19:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-17 17:19:19 +0300
commitb327ed7872ca83c3a4249039ba1a3d8dd3ece630 (patch)
tree5a4ae83dafab23f7832186b5dd0736611998f43c /plugins/MirOTR
parentfd7566b5de6b59bb18ff380cb1fa3f3f1089b70b (diff)
useless field DBEVENTINFO::cbSize removed
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/src/dbfilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirOTR/src/dbfilter.cpp b/plugins/MirOTR/src/dbfilter.cpp
index 131cf2b273..0791b761e0 100644
--- a/plugins/MirOTR/src/dbfilter.cpp
+++ b/plugins/MirOTR/src/dbfilter.cpp
@@ -20,7 +20,7 @@ void CALLBACK DeleteTimerProc(HWND, UINT, UINT_PTR, DWORD) {
if (!DeleteEvents.first) return;
mir_cslock lck(RemoveChainCS);
DeleteEventNode *prev =0, *current, *next;
- DBEVENTINFO info = { sizeof(info) };
+ DBEVENTINFO info = {};
next = DeleteEvents.first;
while (current = next) {
if (difftime(time(0), current->timestamp) < 1) break;
@@ -113,7 +113,7 @@ int OnDatabaseEventAdded(WPARAM hContact, LPARAM lParam)
unsigned len = (unsigned)strlen(LANG_INLINE_PREFIX);
- DBEVENTINFO info = { sizeof(info) };
+ DBEVENTINFO info = {};
info.cbBlob = len * 2;
info.pBlob = (PBYTE)_alloca(info.cbBlob);
if (db_event_get(lParam, &info))