summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
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/VKontakte
parent79ac0acda98f8f7a34bde30b7720a11c04281cb4 (diff)
code cleaning
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/misc.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 5b5a548350..bd918b7b93 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1770,10 +1770,7 @@ MEVENT CVkProto::GetMessageFromDb(const char *messageId, UINT &timestamp, CMStri
if (!hDbEvent)
return 0;
- DB::EventInfo dbei;
- dbei.cbBlob = -1;
- db_event_get(hDbEvent, &dbei);
-
+ DB::EventInfo dbei(hDbEvent);
msg = ptrW(mir_utf8decodeW((char*)dbei.pBlob));
timestamp = dbei.timestamp;