summaryrefslogtreecommitdiff
path: root/plugins/CSList
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/CSList
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/CSList')
-rw-r--r--plugins/CSList/src/cslist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp
index 9ca2277552..7d5968db7a 100644
--- a/plugins/CSList/src/cslist.cpp
+++ b/plugins/CSList/src/cslist.cpp
@@ -234,14 +234,14 @@ void importCustomStatuses(CSWindow* csw, int result)
mir_snprintf(bufTitle, "XStatus%dName", i);
if (!db_get_ws(NULL, protoName, bufTitle, &dbv)) {
- mir_wstrcpy(si->m_tszTitle, dbv.ptszVal);
+ mir_wstrcpy(si->m_tszTitle, dbv.pwszVal);
db_free(&dbv);
}
else si->m_tszTitle[0] = 0;
mir_snprintf(bufMessage, "XStatus%dMsg", i);
if (!db_get_ws(NULL, protoName, bufMessage, &dbv)) {
- mir_wstrcpy(si->m_tszMessage, dbv.ptszVal);
+ mir_wstrcpy(si->m_tszMessage, dbv.pwszVal);
db_free(&dbv);
}
else si->m_tszMessage[0] = 0;
@@ -720,14 +720,14 @@ void CSItemsList::loadItems(char *protoName)
mir_snprintf(dbSetting, "%s_Item%dTitle", protoName, i);
if (!getWString(dbSetting, &dbv)) {
- mir_wstrcpy(item->m_tszTitle, dbv.ptszVal);
+ mir_wstrcpy(item->m_tszTitle, dbv.pwszVal);
db_free(&dbv);
}
else item->m_tszTitle[0] = 0;
mir_snprintf(dbSetting, "%s_Item%dMessage", protoName, i);
if (!getWString(dbSetting, &dbv)) {
- mir_wstrcpy(item->m_tszMessage, dbv.ptszVal);
+ mir_wstrcpy(item->m_tszMessage, dbv.pwszVal);
db_free(&dbv);
}
else item->m_tszMessage[0] = 0;