summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP/src/exportimport.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-07-18 08:38:08 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-07-18 08:38:08 +0000
commit2fca5c410191f5b3f7531590a3cdf9d4e6c68358 (patch)
tree9c026702d3ab0415afaa37584f064ff10811ab09 /plugins/DbEditorPP/src/exportimport.cpp
parent97be7930e06227e0e9c6815937ef6d2c8b7cdc8e (diff)
DBEditor:
- minor bugfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14585 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP/src/exportimport.cpp')
-rw-r--r--plugins/DbEditorPP/src/exportimport.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/DbEditorPP/src/exportimport.cpp b/plugins/DbEditorPP/src/exportimport.cpp
index e5ce1941fb..b474684de4 100644
--- a/plugins/DbEditorPP/src/exportimport.cpp
+++ b/plugins/DbEditorPP/src/exportimport.cpp
@@ -384,17 +384,17 @@ void importSettings(MCONTACT hContact, char *utf8)
switch (type) {
case 'b':
case 'B':
- if (sscanf((end + 2), "%u", &value) == 1)
+ if (sscanf(end + 2, "%u", &value) == 1)
db_set_b(hContact, module, setting, (BYTE)value);
break;
case 'w':
case 'W':
- if (sscanf((end + 2), "%u", &value) == 1)
+ if (sscanf(end + 2, "%u", &value) == 1)
db_set_w(hContact, module, setting, (WORD)value);
break;
case 'd':
case 'D':
- if (sscanf((end + 2), "%u", &value) == 1)
+ if (sscanf(end + 2, "%u", &value) == 1)
db_set_dw(hContact, module, setting, (DWORD)value);
break;
case 's':
@@ -414,6 +414,7 @@ void importSettings(MCONTACT hContact, char *utf8)
memmove(pstr + 1, pstr + 2, mir_strlen(pstr + 2) + 1);
}
}
+ // fall through - write it to database
case 'u':
case 'U':
db_set_utf(hContact, module, setting, (end + 2));