summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-09-05 00:58:10 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-09-05 00:58:10 +0000
commitf8d74890fda17921f15a3f9675188a2d6d35af1f (patch)
treecef4a66a5a812390b10bd39cff26ba5cbbaaab3b
parent078e9c45877ab309e5a03d00ea1d95d7e7dcf88a (diff)
fix for get contact setting defaulting to wchar
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@332 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--MySpace/proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/MySpace/proto.cpp b/MySpace/proto.cpp
index 8a04e6a..fdf05b8 100644
--- a/MySpace/proto.cpp
+++ b/MySpace/proto.cpp
@@ -352,7 +352,7 @@ int GetAvatarInfo(WPARAM wParam,LPARAM lParam) {
int ret = GAIR_NOAVATAR;
DBVARIANT dbv, dbv2;
- bool url_exists = (DBGetContactSetting(AI->hContact, MODULE, "ImageURL", &dbv) == 0);
+ bool url_exists = (DBGetContactSettingString(AI->hContact, MODULE, "ImageURL", &dbv) == 0);
if(!url_exists) {
DBFreeVariant(&dbv);
return GAIR_NOAVATAR;
@@ -360,7 +360,7 @@ int GetAvatarInfo(WPARAM wParam,LPARAM lParam) {
bool online = (status > ID_STATUS_OFFLINE);
bool force = ((wParam & GAIF_FORCE) != 0);
- bool file_exists = (DBGetContactSetting(AI->hContact, MODULE, "AvatarFilename", &dbv2) == 0) && FileExists(dbv2.pszVal);
+ bool file_exists = (DBGetContactSettingString(AI->hContact, MODULE, "AvatarFilename", &dbv2) == 0) && FileExists(dbv2.pszVal);
if(force && online) {
if(file_exists) {