diff options
Diffstat (limited to 'plugins/DbEditorPP/src/exportimport.cpp')
-rw-r--r-- | plugins/DbEditorPP/src/exportimport.cpp | 7 |
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));
|