From 3d5a30660d2aa93a22a0af192b64c170602207ca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Apr 2020 20:13:37 +0300 Subject: more correct way of implementing #1669 --- protocols/SkypeWeb/src/skype_events.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp index 6c4e05edb1..acb0e7941c 100644 --- a/protocols/SkypeWeb/src/skype_events.cpp +++ b/protocols/SkypeWeb/src/skype_events.cpp @@ -107,8 +107,11 @@ INT_PTR CSkypeProto::GetEventText(WPARAM pEvent, LPARAM datatype) szText.AppendFormat("\r\n%s: %s", TranslateU("Preview"), xmlThumb); CMStringA szUrl(xmlThumb); - szUrl.Replace("/views/imgt1_anim", "/views/imgpsh_fullsize_anim"); - szText.AppendFormat("\r\n%s: %s", TranslateU("Full image"), szUrl.c_str()); + int iCount = szUrl.Replace("/views/imgt1_anim", "/views/imgpsh_fullsize_anim"); + if (!iCount) + iCount = szUrl.Replace("/views/imgt1", "/views/imgpsh_fullsize_anim"); + if (iCount) + szText.AppendFormat("\r\n%s: %s", TranslateU("Full image"), szUrl.c_str()); } } } -- cgit v1.2.3