diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-11 20:33:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-11 20:33:30 +0000 |
commit | e27c16fd6a4a1f5b1191c0fd68c53ae459df386d (patch) | |
tree | 471540360d007f4ca20730a542d5520c6d551e57 /plugins/Dbx_mdb/src | |
parent | 4444ba78725aa791b6219860a87aaa6c41c3367f (diff) |
fix for displaying contact modules in Dbeditor++
git-svn-id: http://svn.miranda-ng.org/main/trunk@12384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src')
-rw-r--r-- | plugins/Dbx_mdb/src/dbsettings.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Dbx_mdb/src/dbsettings.cpp b/plugins/Dbx_mdb/src/dbsettings.cpp index 99c6d006db..f9516e4a99 100644 --- a/plugins/Dbx_mdb/src/dbsettings.cpp +++ b/plugins/Dbx_mdb/src/dbsettings.cpp @@ -615,6 +615,9 @@ STDMETHODIMP_(BOOL) CDbxMdb::EnumContactSettings(MCONTACT contactID, DBCONTACTEN } } + if (arSettings.getCount() == 0) + return -1; + for (int i = 0; i < arSettings.getCount(); i++) { result = (dbces->pfnEnumProc)(arSettings[i], dbces->lParam);
mir_free(arSettings[i]);
|