summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify/src
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/ConnectionNotify/src
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/ConnectionNotify/src')
-rw-r--r--plugins/ConnectionNotify/src/ConnectionNotify.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ConnectionNotify/src/ConnectionNotify.cpp b/plugins/ConnectionNotify/src/ConnectionNotify.cpp
index 49ca5c36e3..c18dad2c35 100644
--- a/plugins/ConnectionNotify/src/ConnectionNotify.cpp
+++ b/plugins/ConnectionNotify/src/ConnectionNotify.cpp
@@ -126,15 +126,15 @@ struct CONNECTION* LoadSettingsConnections()
struct CONNECTION *conn = (struct CONNECTION*)mir_alloc(sizeof(struct CONNECTION));
mir_snprintf(buff, "%dFilterIntIp", i);
if (!db_get_ws(NULL, PLUGINNAME, buff, &dbv))
- wcsncpy(conn->strIntIp, dbv.ptszVal, _countof(conn->strIntIp));
+ wcsncpy(conn->strIntIp, dbv.pwszVal, _countof(conn->strIntIp));
db_free(&dbv);
mir_snprintf(buff, "%dFilterExtIp", i);
if (!db_get_ws(NULL, PLUGINNAME, buff, &dbv))
- wcsncpy(conn->strExtIp, dbv.ptszVal, _countof(conn->strExtIp));
+ wcsncpy(conn->strExtIp, dbv.pwszVal, _countof(conn->strExtIp));
db_free(&dbv);
mir_snprintf(buff, "%dFilterPName", i);
if (!db_get_ws(NULL, PLUGINNAME, buff, &dbv))
- wcsncpy(conn->PName, dbv.ptszVal, _countof(conn->PName));
+ wcsncpy(conn->PName, dbv.pwszVal, _countof(conn->PName));
db_free(&dbv);
mir_snprintf(buff, "%dFilterIntPort", i);