summaryrefslogtreecommitdiff
path: root/protocols/Steam
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 /protocols/Steam
parent79ac0acda98f8f7a34bde30b7720a11c04281cb4 (diff)
code cleaning
Diffstat (limited to 'protocols/Steam')
-rw-r--r--protocols/Steam/src/steam_proto.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index 5f42e3ebe2..f64600bfa0 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -106,9 +106,8 @@ MCONTACT CSteamProto::AddToList(int, PROTOSEARCHRESULT *psr)
MCONTACT CSteamProto::AddToListByEvent(int, int, MEVENT hDbEvent)
{
- DB::EventInfo dbei;
- dbei.cbBlob = -1;
- if (db_event_get(hDbEvent, &dbei))
+ DB::EventInfo dbei(hDbEvent);
+ if (!dbei)
return 0;
if (mir_strcmp(dbei.szModule, m_szModuleName))
return 0;