summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-08 16:58:54 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-08 16:58:54 +0000
commit1e42c0c9226a914f18c027aab8c6a711d43189f7 (patch)
tree7cd3c90b1b256222634d2dc449d058f7463722f8
parent412d378dadabf1f5e297183ed1e82110cea6edd3 (diff)
Toaster: add shortcut in win 10 (fix for not work settings)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15307 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Toaster/src/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index af76da6955..13296b3889 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -49,12 +49,9 @@ extern "C" int __declspec(dllexport) Load(void)
if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
CreateDirectoryTreeT(wszTempDir);
- if (IsWinVer8Plus() && !IsWinVer10Plus())
+ if (FAILED(TryCreateShortcut()))
{
- if (FAILED(TryCreateShortcut()))
- {
- MessageBox(NULL, TranslateT("Failed to create shortcut"), _T(MODULE), MB_OK | MB_ICONERROR);
- }
+ MessageBox(NULL, TranslateT("Failed to create shortcut"), _T(MODULE), MB_OK | MB_ICONERROR);
}
return 0;