diff options
-rw-r--r-- | plugins/Db3x_mmap/src/dbcontacts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbcontacts.cpp b/plugins/Db3x_mmap/src/dbcontacts.cpp index 2fdf598252..cecd5f85b0 100644 --- a/plugins/Db3x_mmap/src/dbcontacts.cpp +++ b/plugins/Db3x_mmap/src/dbcontacts.cpp @@ -429,7 +429,7 @@ void CDb3Mmap::FillContacts() }
// no need in conversion? quit then
- if (arMetas.getCount() == 0)
+ if (m_bReadOnly || arMetas.getCount() == 0)
return;
DBVARIANT dbv; dbv.type = DBVT_DWORD;
@@ -448,7 +448,7 @@ void CDb3Mmap::FillContacts() dbws.value.type = DBVT_DWORD;
DBCachedContact *ccMeta = p->cc;
- if (dbv.dVal < ccMeta->nSubs) {
+ if (int(dbv.dVal) < ccMeta->nSubs) {
ccMeta->pSubs[dbv.dVal] = hh;
char setting[100];
|