From 1e42c0c9226a914f18c027aab8c6a711d43189f7 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 8 Sep 2015 16:58:54 +0000 Subject: 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 --- plugins/Toaster/src/main.cpp | 7 ++----- 1 file 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; -- cgit v1.2.3