From 6bb9843450cc285c7acc870c79bcc3beae8933b2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Sep 2013 11:20:49 +0000 Subject: major Asshole design flaw removed from Jabber, there's no need to invent monstrous maps to store message-related information git-svn-id: http://svn.miranda-ng.org/main/trunk@6207 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/protocols/protocols.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index efcd69ffba..23cda5cc42 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -151,8 +151,7 @@ static INT_PTR Proto_RecvMessage(WPARAM, LPARAM lParam) ptrA pszTemp; mir_ptr pszBlob; - DBEVENTINFO dbei = { 0 }; - dbei.cbSize = sizeof(dbei); + DBEVENTINFO dbei = { sizeof(dbei) }; dbei.szModule = GetContactProto(ccs->hContact); dbei.timestamp = pre->timestamp; dbei.eventType = EVENTTYPE_MESSAGE; @@ -187,8 +186,7 @@ static INT_PTR Proto_AuthRecv(WPARAM wParam, LPARAM lParam) { PROTORECVEVENT* pre = (PROTORECVEVENT*)lParam; - DBEVENTINFO dbei = { 0 }; - dbei.cbSize = sizeof(dbei); + DBEVENTINFO dbei = { sizeof(dbei) }; dbei.szModule = (char*)wParam; dbei.timestamp = pre->timestamp; dbei.flags = pre->flags & (PREF_CREATEREAD?DBEF_READ:0); -- cgit v1.2.3