diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-22 20:13:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-22 20:13:37 +0300 |
commit | 3d5a30660d2aa93a22a0af192b64c170602207ca (patch) | |
tree | 863046fb55fa8bbac190b655dfda4fcd157dba25 /protocols/SkypeWeb | |
parent | 87a87064b905976602168c729e4bff4a54932223 (diff) |
more correct way of implementing #1669
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_events.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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());
}
}
}
|