summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CAppletManager.cpp
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/MirandaG15/src/CAppletManager.cpp
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/MirandaG15/src/CAppletManager.cpp')
-rw-r--r--plugins/MirandaG15/src/CAppletManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp
index 2ab2c723ab..41cc3e307d 100644
--- a/plugins/MirandaG15/src/CAppletManager.cpp
+++ b/plugins/MirandaG15/src/CAppletManager.cpp
@@ -450,7 +450,7 @@ tstring CAppletManager::GetContactGroup(MCONTACT hContact)
tstring strGroup = L"";
if (!res)
- strGroup = dbv.ptszVal;
+ strGroup = dbv.pwszVal;
db_free(&dbv);
return strGroup;
@@ -1448,7 +1448,7 @@ int CAppletManager::HookStatusChanged(WPARAM wParam, LPARAM lParam)
DBVARIANT dbv;
if (db_get_ws(Event.hContact, szProto, "Nick", &dbv))
return 0;
- CAppletManager::GetInstance()->CreateIRCHistory(Event.hContact, dbv.ptszVal);
+ CAppletManager::GetInstance()->CreateIRCHistory(Event.hContact, dbv.pwszVal);
db_free(&dbv);
}
else
@@ -1656,7 +1656,7 @@ int CAppletManager::HookSettingChanged(WPARAM hContact, LPARAM lParam)
char *szProto = GetContactProto(Event.hContact);
if (db_get_ws(Event.hContact, szProto, "Nick", &dbv))
return 0;
- Event.strValue = dbv.ptszVal;
+ Event.strValue = dbv.pwszVal;
db_free(&dbv);
}
}
@@ -1670,7 +1670,7 @@ int CAppletManager::HookSettingChanged(WPARAM hContact, LPARAM lParam)
DBVARIANT dbv;
int res = db_get_ws(hContact, "CList", "Group", &dbv);
if (!res)
- Event.strValue = dbv.ptszVal;
+ Event.strValue = dbv.pwszVal;
db_free(&dbv);
}
else return 0;