From e96132b4d5344d2d58d247906bcaefccfb9d5253 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Dec 2023 13:34:45 +0300 Subject: DBEVENTINFO::hContact to be returned inside an event, no need to call db_event_getContact() just after db_event_get() --- protocols/Gadu-Gadu/src/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Gadu-Gadu/src/core.cpp') diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp index 93432deea9..b7c506df0b 100644 --- a/protocols/Gadu-Gadu/src/core.cpp +++ b/protocols/Gadu-Gadu/src/core.cpp @@ -897,7 +897,7 @@ retry: dbei.flags = DBEF_SENT | DBEF_UTF; dbei.eventType = EVENTTYPE_MESSAGE; dbei.cbBlob = (uint32_t)mir_strlen(e->event.multilogon_msg.message) + 1; - dbei.pBlob = (uint8_t*)e->event.multilogon_msg.message; + dbei.pBlob = e->event.multilogon_msg.message; db_event_add(getcontact(e->event.multilogon_msg.sender, 1, 0, nullptr), &dbei); } break; -- cgit v1.2.3