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() --- plugins/DbChecker/src/worker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/DbChecker/src') diff --git a/plugins/DbChecker/src/worker.cpp b/plugins/DbChecker/src/worker.cpp index 6839bdf35e..40de977360 100644 --- a/plugins/DbChecker/src/worker.cpp +++ b/plugins/DbChecker/src/worker.cpp @@ -56,7 +56,7 @@ static bool ConvertOldEvent(DBEVENTINFO &dbei) dbei.flags |= DBEF_UTF; dbei.cbBlob = (uint32_t)mir_strlen(utf8str); - dbei.pBlob = (uint8_t*)utf8str; + dbei.pBlob = utf8str; return true; } @@ -128,7 +128,7 @@ void __cdecl WorkerThread(DbToolOptions *opts) mir_free(dboldev.pBlob); dboldev = dbei; if (dboldev.cbBlob) { - dboldev.pBlob = (uint8_t *)mir_alloc(dboldev.cbBlob); + dboldev.pBlob = (char *)mir_alloc(dboldev.cbBlob); memcpy(dboldev.pBlob, dbei.pBlob, dboldev.cbBlob); } else dboldev.pBlob = nullptr; -- cgit v1.2.3