summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-19 20:05:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-19 20:05:06 +0300
commitda6e2ad2e47bafed517660f496afd1e0bba274ec (patch)
treeb1c6beba8223eea008054c580becc5d6961a6dd3
parent5090efd0acaf21325a052a3041d1f2e52e14c5d8 (diff)
grrm...
-rw-r--r--plugins/Dbx_mdbx/src/dbevents.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp
index e2494a9c00..bcbc8f6b51 100644
--- a/plugins/Dbx_mdbx/src/dbevents.cpp
+++ b/plugins/Dbx_mdbx/src/dbevents.cpp
@@ -658,7 +658,8 @@ public:
return 0;
dbKey = *(const DBEventSortingKey *)key.iov_base;
- if (!m_bForward && dbKey.hContact) {
+ // we could easily move position to the next contact, if it exists
+ if (!m_bForward && dbKey.hContact != hContact) {
if (mdbx_cursor_get(m_pOwner->m_curEventsSort, &key, &data, MDBX_PREV) != MDBX_SUCCESS)
return 0;