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/Discord/src | |
parent | 1513340956911f3e3efc252bc1a0bae046dc8d3e (diff) |
useless checks removed
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/avatars.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp index cc12cbb381..38e7cb4eb9 100644 --- a/protocols/Discord/src/avatars.cpp +++ b/protocols/Discord/src/avatars.cpp @@ -20,10 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. CMStringW CDiscordProto::GetAvatarFilename(MCONTACT hContact) { CMStringW wszResult(FORMAT, L"%s\\%S", VARSW(L"%miranda_avatarcache%"), m_szModuleName); - - DWORD dwAttributes = GetFileAttributes(wszResult); - if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) - CreateDirectoryTreeW(wszResult); + CreateDirectoryTreeW(wszResult); wszResult.AppendChar('\\'); |