summaryrefslogtreecommitdiff
path: root/plugins/LotusNotify
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-24 11:11:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-24 11:11:26 +0300
commitd296f9f99daf102b9af5d56690e2bd00d61c1267 (patch)
tree39311caaf80abf0b47ecb78cf94dc8157b193575 /plugins/LotusNotify
parentffc521e5d5e9bd66feb65afe0046b3fc7e073356 (diff)
database:
- senseless fiels ptszVal removed from DBVARIANT, pwszVal is used instead; - if you want db_get to return a string, you need to use db_get_s.
Diffstat (limited to 'plugins/LotusNotify')
-rw-r--r--plugins/LotusNotify/src/LotusNotify.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/LotusNotify/src/LotusNotify.cpp b/plugins/LotusNotify/src/LotusNotify.cpp
index 6c70db5ab3..253580bc73 100644
--- a/plugins/LotusNotify/src/LotusNotify.cpp
+++ b/plugins/LotusNotify/src/LotusNotify.cpp
@@ -980,7 +980,7 @@ static void LoadSettings()
strncpy_s(settingServerSec, _countof(settingServerSec), dbv.pszVal, _countof(settingServerSec));
db_free(&dbv);
}
- if (!db_get(NULL, MODULENAME, "LNPassword", &dbv)) {
+ if (!db_get_s(NULL, MODULENAME, "LNPassword", &dbv)) {
strncpy_s(settingPassword, _countof(settingPassword), dbv.pszVal, _countof(settingPassword));
db_free(&dbv);
}
@@ -994,15 +994,15 @@ static void LoadSettings()
}
if (!db_get_ws(NULL, MODULENAME, "LNFilterSender", &dbv)) {
- wcsncpy_s(settingFilterSender, dbv.ptszVal, _TRUNCATE);
+ wcsncpy_s(settingFilterSender, dbv.pwszVal, _TRUNCATE);
db_free(&dbv);
}
if (!db_get_ws(NULL, MODULENAME, "LNFilterSubject", &dbv)) {
- wcsncpy_s(settingFilterSubject, dbv.ptszVal, _TRUNCATE);
+ wcsncpy_s(settingFilterSubject, dbv.pwszVal, _TRUNCATE);
db_free(&dbv);
}
if (!db_get_ws(NULL, MODULENAME, "LNFilterTo", &dbv)) {
- wcsncpy_s(settingFilterTo, dbv.ptszVal, _TRUNCATE);
+ wcsncpy_s(settingFilterTo, dbv.pwszVal, _TRUNCATE);
db_free(&dbv);
}