From 30aa26c864fa09b974e3c223ccf907421ebc0759 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 Apr 2018 13:11:16 +0300 Subject: obsolete compatibility code removed from AVS --- plugins/IEView/src/TemplateHTMLBuilder.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/IEView/src') 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) { -- cgit v1.2.3