diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-21 15:20:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-21 15:20:40 +0000 |
commit | 78e038845b9fd52d4ac8faf0efcccfc4a82626c1 (patch) | |
tree | 7fa9322f30556e214da34b60f0c3ddad1fc88d79 /plugins | |
parent | 4d325effb6ac409e36b04657860e81fb3df760f3 (diff) |
CDbxMdb::GetBlobSize - fix for the wrong return value
git-svn-id: http://svn.miranda-ng.org/main/trunk@11886 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dbx_mdb/src/dbevents.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|