From f8d74890fda17921f15a3f9675188a2d6d35af1f Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 5 Sep 2007 00:58:10 +0000 Subject: 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 --- MySpace/proto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MySpace/proto.cpp') 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) { -- cgit v1.2.3