summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-21 15:41:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-21 15:41:21 +0300
commit862e3c1f3b612d91251fc45fe16e681470f5e5b3 (patch)
treef0c404f0b4b128535e922a196e35b23bdfaeec25 /plugins/Dbx_mdbx
parent368611ceedca2c4c37e435ee2da34775eaf06109 (diff)
no, this crutch is used...
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r--plugins/Dbx_mdbx/src/dbevents.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp
index 09baddc8a4..2c9a1d71f0 100644
--- a/plugins/Dbx_mdbx/src/dbevents.cpp
+++ b/plugins/Dbx_mdbx/src/dbevents.cpp
@@ -282,7 +282,7 @@ LONG CDbxMDBX::GetBlobSize(MEVENT hDbEvent)
{
MDBX_val key = { &hDbEvent, sizeof(MEVENT) }, data;
if (mdbx_get(StartTran(), m_dbEvents, &key, &data) != MDBX_SUCCESS)
- return 0;
+ return -1;
return ((const DBEvent*)data.iov_base)->cbBlob;
}