summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_avatars.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-16 14:35:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-16 14:35:10 +0300
commit40686cc1869953a42f311b6d8a3558e99acef37d (patch)
tree7e6b0d69261ddbfb0aa82535a20eeaf5159103a0 /protocols/SkypeWeb/src/skype_avatars.cpp
parent1513340956911f3e3efc252bc1a0bae046dc8d3e (diff)
useless checks removed
Diffstat (limited to 'protocols/SkypeWeb/src/skype_avatars.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_avatars.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_avatars.cpp b/protocols/SkypeWeb/src/skype_avatars.cpp
index 82ffb3ca73..b7e01445d5 100644
--- a/protocols/SkypeWeb/src/skype_avatars.cpp
+++ b/protocols/SkypeWeb/src/skype_avatars.cpp
@@ -123,11 +123,7 @@ INT_PTR CSkypeProto::SvcGetMyAvatar(WPARAM wParam, LPARAM lParam)
void CSkypeProto::GetAvatarFileName(MCONTACT hContact, wchar_t* pszDest, size_t cbLen)
{
int tPathLen = mir_snwprintf(pszDest, cbLen, L"%s\\%s", VARSW(L"%miranda_avatarcache%").get(), m_tszUserName);
-
- DWORD dwAttributes = GetFileAttributes(pszDest);
- if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
- CreateDirectoryTreeW(pszDest);
-
+ CreateDirectoryTreeW(pszDest);
pszDest[tPathLen++] = '\\';
const wchar_t* szFileType = ProtoGetAvatarExtension(getByte(hContact, "AvatarType", PA_FORMAT_JPEG));