summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src
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 /plugins/Toaster/src
parent1513340956911f3e3efc252bc1a0bae046dc8d3e (diff)
useless checks removed
Diffstat (limited to 'plugins/Toaster/src')
-rw-r--r--plugins/Toaster/src/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index 7aeb3bee78..470399a83d 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -61,10 +61,7 @@ int CMPlugin::Load()
if (GetEnvironmentVariableW(L"TEMP", wszTempDir, MAX_PATH) != 0) {
wcscat_s(wszTempDir, L"\\Miranda.Toaster");
-
- DWORD dwAttributes = GetFileAttributes(wszTempDir);
- if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
- CreateDirectoryTreeW(wszTempDir);
+ CreateDirectoryTreeW(wszTempDir);
}
else MessageBox(nullptr, TranslateT("Failed to create temporary directory"), _T(MODULENAME), MB_OK | MB_ICONERROR);