diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-20 13:34:45 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-20 13:34:45 +0300 |
commit | e96132b4d5344d2d58d247906bcaefccfb9d5253 (patch) | |
tree | 24a9524e4900547f2ba3a461e228fd3c98c0410d /plugins/DbChecker/src | |
parent | 4dac8bd56f9116ac76423b2664286ed894ca80c2 (diff) |
DBEVENTINFO::hContact to be returned inside an event, no need to call db_event_getContact() just after db_event_get()
Diffstat (limited to 'plugins/DbChecker/src')
-rw-r--r-- | plugins/DbChecker/src/worker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|