summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-01-01 14:58:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-01-01 14:58:25 +0300
commitf828d2569303fa4b26bee503dc9f438fd1fe0c7d (patch)
treeb931297e575f6038eb9056c03dc50b3d01606998 /plugins/DbChecker/src
parentb453b95cae4275f3f79ef229bed8e337a6b58f83 (diff)
fixes #3290 completely + fix for the database checker
Diffstat (limited to 'plugins/DbChecker/src')
-rw-r--r--plugins/DbChecker/src/worker.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/DbChecker/src/worker.cpp b/plugins/DbChecker/src/worker.cpp
index 5527e3509a..6be8262b5f 100644
--- a/plugins/DbChecker/src/worker.cpp
+++ b/plugins/DbChecker/src/worker.cpp
@@ -26,6 +26,11 @@ static bool ConvertOldEvent(DBEVENTINFO &dbei)
if (dbei.flags & DBEF_UTF)
return false;
+ if (dbei.flags == 1) {
+ dbei.flags = DBEF_UTF;
+ return true;
+ }
+
int msglen = (int)mir_strlen((char *)dbei.pBlob) + 1, msglenW = 0;
if (msglen != (int)dbei.cbBlob) {
int count = ((dbei.cbBlob - msglen) / sizeof(wchar_t));