summaryrefslogtreecommitdiff
path: root/plugins/wbOSD/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-10 18:50:46 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-10 18:50:46 +0300
commit90ac4c689e1322b48f6ca53a0c8fff81daf73c9c (patch)
tree63e000a99864d819650634fe8a7fa8b2be0cd1d2 /plugins/wbOSD/src
parent79ac0acda98f8f7a34bde30b7720a11c04281cb4 (diff)
code cleaning
Diffstat (limited to 'plugins/wbOSD/src')
-rw-r--r--plugins/wbOSD/src/events.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/wbOSD/src/events.cpp b/plugins/wbOSD/src/events.cpp
index 993ece3475..f456b4aab1 100644
--- a/plugins/wbOSD/src/events.cpp
+++ b/plugins/wbOSD/src/events.cpp
@@ -129,9 +129,8 @@ int ContactStatusChanged(WPARAM wParam, LPARAM lParam)
int HookedNewEvent(WPARAM wParam, LPARAM hDBEvent)
{
logmsg("HookedNewEvent1");
- DB::EventInfo dbe;
- dbe.cbBlob = -1;
- if (db_event_get(hDBEvent, &dbe))
+ DB::EventInfo dbe(hDBEvent);
+ if (!dbe)
return 0;
if (dbe.flags & DBEF_SENT)