summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP/src/copymodule.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-13 15:19:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-13 15:19:47 +0000
commit7f35b5c32df443cf13dbb476c641e01f30db1d6c (patch)
tree6d8f90bb3e7e3dd41f0fde9e2ac8557a260cb8b4 /plugins/DbEditorPP/src/copymodule.cpp
parentca03ebb556b09af11c936f1be681323d419efceb (diff)
encrypted settings are not displayed in dbeditor
git-svn-id: http://svn.miranda-ng.org/main/trunk@7631 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP/src/copymodule.cpp')
-rw-r--r--plugins/DbEditorPP/src/copymodule.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/DbEditorPP/src/copymodule.cpp b/plugins/DbEditorPP/src/copymodule.cpp
index 9a9772edb4..e3884fb123 100644
--- a/plugins/DbEditorPP/src/copymodule.cpp
+++ b/plugins/DbEditorPP/src/copymodule.cpp
@@ -3,12 +3,11 @@
void copyModule(char* module, HANDLE hContactFrom, HANDLE hContactTo)
{
ModuleSettingLL msll;
- struct ModSetLinkLinkItem *setting;
- EnumSettings(hContactFrom,module, &msll);
+ EnumSettings(hContactFrom, module, &msll);
- setting = msll.first;
- while(setting) {
+ ModSetLinkLinkItem *setting = msll.first;
+ while (setting) {
DBVARIANT dbv;
if (!GetSetting(hContactFrom, module, setting->name, &dbv)) {
switch (dbv.type) {
@@ -33,7 +32,7 @@ void copyModule(char* module, HANDLE hContactFrom, HANDLE hContactTo)
}
}
db_free(&dbv);
- setting = (struct ModSetLinkLinkItem *)setting->next;
+ setting = setting->next;
}
FreeModuleSettingLL(&msll);
}