summaryrefslogtreecommitdiff
path: root/plugins/IEView/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-10 13:11:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-10 13:11:16 +0300
commit30aa26c864fa09b974e3c223ccf907421ebc0759 (patch)
tree242d5635daec062b22a166c1047810ae4b54a8bc /plugins/IEView/src
parentda8d306b9d6fbe48f04f56d78be2058873f03dbc (diff)
obsolete compatibility code removed from AVS
Diffstat (limited to 'plugins/IEView/src')
-rw-r--r--plugins/IEView/src/TemplateHTMLBuilder.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp
index 9f7ebb07a7..b0c63ca4cb 100644
--- a/plugins/IEView/src/TemplateHTMLBuilder.cpp
+++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp
@@ -45,12 +45,8 @@ char* TemplateHTMLBuilder::getAvatar(MCONTACT hContact, const char *szProto)
else
ace = (AVATARCACHEENTRY *)CallService(MS_AV_GETAVATARBITMAP, hContact, 0);
- if (ace != nullptr) {
- if (ace->cbSize == sizeof(AVATARCACHEENTRY))
- result = ace->szFilename;
- else // compatibility: in M0.9 it will always be char*
- MultiByteToWideChar(CP_ACP, 0, (char*)ace->szFilename, -1, tmpPath, _countof(tmpPath));
- }
+ if (ace != nullptr)
+ result = ace->szFilename;
}
if (!db_get_ws(hContact, "ContactPhoto", "File", &dbv)) {
if (mir_wstrlen(dbv.ptszVal) > 0) {