diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-16 14:35:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-16 14:35:10 +0300 |
commit | 40686cc1869953a42f311b6d8a3558e99acef37d (patch) | |
tree | 7e6b0d69261ddbfb0aa82535a20eeaf5159103a0 /protocols/SkypeWeb/src/skype_proto.cpp | |
parent | 1513340956911f3e3efc252bc1a0bae046dc8d3e (diff) |
useless checks removed
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 6ebe23a08d..3bc30f8b42 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -50,9 +50,7 @@ CSkypeProto::CSkypeProto(const char* protoName, const wchar_t* userName) : HookProtoEvent(ME_DB_EVENT_MARKED_READ, &CSkypeProto::OnDbEventRead); m_tszAvatarFolder = std::wstring(VARSW(L"%miranda_avatarcache%")) + L"\\" + m_tszUserName; - DWORD dwAttributes = GetFileAttributes(m_tszAvatarFolder.c_str()); - if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) - CreateDirectoryTreeW(m_tszAvatarFolder.c_str()); + CreateDirectoryTreeW(m_tszAvatarFolder.c_str()); //sounds g_plugin.addSound("skype_inc_call", L"SkypeWeb", LPGENW("Incoming call")); |