From 78e038845b9fd52d4ac8faf0efcccfc4a82626c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Jan 2015 15:20:40 +0000 Subject: CDbxMdb::GetBlobSize - fix for the wrong return value git-svn-id: http://svn.miranda-ng.org/main/trunk@11886 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/dbevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Dbx_mdb/src') diff --git a/plugins/Dbx_mdb/src/dbevents.cpp b/plugins/Dbx_mdb/src/dbevents.cpp index ce7f23fe3f..a64678f434 100644 --- a/plugins/Dbx_mdb/src/dbevents.cpp +++ b/plugins/Dbx_mdb/src/dbevents.cpp @@ -178,7 +178,7 @@ STDMETHODIMP_(LONG) CDbxMdb::GetBlobSize(MEVENT hDbEvent) MDB_val key = { sizeof(MEVENT), &hDbEvent }, data; if (mdb_get(txn, m_dbEvents, &key, &data) != MDB_SUCCESS) - return 0; + return -1; DBEvent *dbe = (DBEvent*)data.mv_data; return (dbe->dwSignature == DBEVENT_SIGNATURE) ? dbe->cbBlob : 0; -- cgit v1.2.3