diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-05 17:15:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-05 17:15:41 +0000 |
commit | 50e9cca2ec06bbae40237f491a3bae80b454928e (patch) | |
tree | 711249732d109f6d288c4b8587e0d8ac56d359c6 /src/modules/metacontacts/meta_edit.cpp | |
parent | 3b620119f530681ddffcdfdcabd8a41e426a9e7f (diff) |
fix for removing the single sub in the MC Editor
git-svn-id: http://svn.miranda-ng.org/main/trunk@8415 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/meta_edit.cpp')
-rw-r--r-- | src/modules/metacontacts/meta_edit.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/metacontacts/meta_edit.cpp b/src/modules/metacontacts/meta_edit.cpp index ffd740fa4d..f5e694f7dc 100644 --- a/src/modules/metacontacts/meta_edit.cpp +++ b/src/modules/metacontacts/meta_edit.cpp @@ -166,14 +166,11 @@ static void ApplyChanges() // fix avatar
most_online = Meta_GetMostOnlineSupporting(g_data.cc, PFLAGNUM_4, PF4_AVATARS);
if (most_online) {
- PROTO_AVATAR_INFORMATIONT AI;
-
- AI.cbSize = sizeof(AI);
+ PROTO_AVATAR_INFORMATIONT AI = { sizeof(AI) };
AI.hContact = g_data.hMeta;
AI.format = PA_FORMAT_UNKNOWN;
_tcscpy(AI.filename, _T("X"));
-
- if ((int)CallProtoService(META_PROTO, PS_GETAVATARINFOT, 0, (LPARAM)&AI) == GAIR_SUCCESS)
+ if (CallProtoService(META_PROTO, PS_GETAVATARINFOT, 0, (LPARAM)&AI) == GAIR_SUCCESS)
db_set_ts(g_data.hMeta, "ContactPhoto", "File", AI.filename);
}
|