summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-11 20:33:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-11 20:33:30 +0000
commite27c16fd6a4a1f5b1191c0fd68c53ae459df386d (patch)
tree471540360d007f4ca20730a542d5520c6d551e57 /plugins/DbEditorPP
parent4444ba78725aa791b6219860a87aaa6c41c3367f (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/DbEditorPP')
-rw-r--r--plugins/DbEditorPP/src/modsettingenum.cpp7
-rw-r--r--plugins/DbEditorPP/src/modsettingenum.h2
2 files changed, 3 insertions, 6 deletions
diff --git a/plugins/DbEditorPP/src/modsettingenum.cpp b/plugins/DbEditorPP/src/modsettingenum.cpp
index 8c315f2a70..00bac689c9 100644
--- a/plugins/DbEditorPP/src/modsettingenum.cpp
+++ b/plugins/DbEditorPP/src/modsettingenum.cpp
@@ -73,13 +73,10 @@ int CheckIfModuleIsEmptyProc(const char *, LPARAM)
return 1;
}
-int IsModuleEmpty(MCONTACT hContact, char* szModule)
+bool IsModuleEmpty(MCONTACT hContact, char* szModule)
{
DBCONTACTENUMSETTINGS dbces;
dbces.pfnEnumProc = CheckIfModuleIsEmptyProc;
dbces.szModule = szModule;
- int retVal = CallService(MS_DB_CONTACT_ENUMSETTINGS, hContact, (LPARAM)&dbces);
- if (retVal >= 0)
- return 0;
- return 1;
+ return 0 > CallService(MS_DB_CONTACT_ENUMSETTINGS, hContact, (LPARAM)&dbces);
}
diff --git a/plugins/DbEditorPP/src/modsettingenum.h b/plugins/DbEditorPP/src/modsettingenum.h
index ea37a0d00b..f46d991ac1 100644
--- a/plugins/DbEditorPP/src/modsettingenum.h
+++ b/plugins/DbEditorPP/src/modsettingenum.h
@@ -15,4 +15,4 @@ int EnumSettings(MCONTACT hContact, char *module, ModuleSettingLL *msll);
void FreeModuleSettingLL(ModuleSettingLL *msll);
-int IsModuleEmpty(MCONTACT hContact, char *szModule);
+bool IsModuleEmpty(MCONTACT hContact, char *szModule);