diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/protocols/protocols.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<BYTE> 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);
|