From d296f9f99daf102b9af5d56690e2bd00d61c1267 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Jul 2018 11:11:26 +0300 Subject: 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. --- plugins/LotusNotify/src/LotusNotify.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/LotusNotify/src') 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); } -- cgit v1.2.3