summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/dbutils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-24 18:18:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-24 18:18:59 +0300
commit0ad50afcb9b77a5d92ccade06a443552f702bdc3 (patch)
treeceb8d6c1c5027f811c6ed6efec6d2c0eccece569 /plugins/Dbx_mdb/src/dbutils.cpp
parentbaa0c8ab5a4e5dc7a94a6bb0b8be095a760f48d0 (diff)
Dbx_mdb:
- fix for settings sorting order; - warning fixes
Diffstat (limited to 'plugins/Dbx_mdb/src/dbutils.cpp')
-rw-r--r--plugins/Dbx_mdb/src/dbutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdb/src/dbutils.cpp b/plugins/Dbx_mdb/src/dbutils.cpp
index 27dcf4147a..ebd7780cbc 100644
--- a/plugins/Dbx_mdb/src/dbutils.cpp
+++ b/plugins/Dbx_mdb/src/dbutils.cpp
@@ -43,5 +43,5 @@ int DBSettingKey::Compare(const MDBX_val *ax, const MDBX_val *bx)
CMP_UINT(a->hContact, b->hContact);
CMP_UINT(a->dwModuleId, b->dwModuleId);
- return (min(ax->iov_len, bx->iov_len) > sizeof(DBSettingKey)) ? strcmp(a->szSettingName, b->szSettingName) : 0;
+ return strcmp(a->szSettingName, b->szSettingName);
}