diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-31 17:50:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-31 17:50:56 +0000 |
commit | 9631bfe941ed0cbba6e720b7efd92966e0c6a670 (patch) | |
tree | 7b76ef132a0afb2e7185923d368a7fc328358b76 /plugins/AVS/src/services.cpp | |
parent | 83a45d3e3f7bccff5b32dc0cb2d0e81340ec6ec2 (diff) |
old ugly trash removed from AVS
git-svn-id: http://svn.miranda-ng.org/main/trunk@10005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS/src/services.cpp')
-rw-r--r-- | plugins/AVS/src/services.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp index 24d4579e6b..cd1ac0fd72 100644 --- a/plugins/AVS/src/services.cpp +++ b/plugins/AVS/src/services.cpp @@ -37,8 +37,7 @@ INT_PTR GetAvatarBitmap(WPARAM hContact, LPARAM lParam) CacheNode *node = FindAvatarInCache(hContact, TRUE);
if (node == NULL || !node->loaded)
return (INT_PTR)GetProtoDefaultAvatar(hContact);
- else
- return (INT_PTR)&node->ace;
+ return (INT_PTR)node;
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -56,7 +55,7 @@ INT_PTR ProtectAvatar(WPARAM hContact, LPARAM lParam) db_set_b(hContact, "ContactPhoto", "Locked", lParam ? 1 : 0);
if (lParam == 0)
MakePathRelative(hContact);
- ChangeAvatar(hContact, TRUE);
+ ChangeAvatar(hContact, true);
}
return 0;
}
@@ -179,9 +178,9 @@ static INT_PTR avSetAvatar(MCONTACT hContact, TCHAR *tszPath) db_set_b(hContact, "ContactPhoto", "Locked", is_locked);
db_set_ts(hContact, "ContactPhoto", "File", szFinalName);
MakePathRelative(hContact, szFinalName);
- // Fix cache
- ChangeAvatar(hContact, TRUE);
+ // Fix cache
+ ChangeAvatar(hContact, true);
return 0;
}
|