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/Nudge/src/nudge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Nudge/src') diff --git a/plugins/Nudge/src/nudge.cpp b/plugins/Nudge/src/nudge.cpp index 9dc4476a54..0fd8bf670f 100644 --- a/plugins/Nudge/src/nudge.cpp +++ b/plugins/Nudge/src/nudge.cpp @@ -82,7 +82,7 @@ void CNudgeElement::Load(void) mir_snprintf(SectionName, "%s-recText", ProtocolName); if (!db_get_ws(NULL, MODULENAME, SectionName, &dbv)) { - wcsncpy(this->recText, dbv.ptszVal, TEXT_LEN); + wcsncpy(this->recText, dbv.pwszVal, TEXT_LEN); if (wcslen(this->recText) < 1) wcsncpy(this->recText, TranslateT("You received a nudge"), TEXT_LEN); db_free(&dbv); @@ -91,7 +91,7 @@ void CNudgeElement::Load(void) mir_snprintf(SectionName, "%s-senText", ProtocolName); if (!db_get_ws(NULL, MODULENAME, SectionName, &dbv)) { - wcsncpy(this->senText, dbv.ptszVal, TEXT_LEN); + wcsncpy(this->senText, dbv.pwszVal, TEXT_LEN); if (wcslen(this->senText) < 1) wcsncpy(this->senText, TranslateT("You sent a nudge"), TEXT_LEN); db_free(&dbv); -- cgit v1.2.3