summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-30 09:15:36 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-30 09:15:36 +0000
commit160f2c6d8f11e60ca3775f9bccc157ba1447f107 (patch)
tree1c93818c78f98e3c8448d2bd5541156837184349 /plugins/Toaster/src
parent4487feacf1085175460ff011aa28fcfb4a15995a (diff)
Toaster: fix shortcut
git-svn-id: http://svn.miranda-ng.org/main/trunk@15113 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src')
-rw-r--r--plugins/Toaster/src/add_to_start_menu.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Toaster/src/add_to_start_menu.h b/plugins/Toaster/src/add_to_start_menu.h
index 0fd3bf6171..f4bccab295 100644
--- a/plugins/Toaster/src/add_to_start_menu.h
+++ b/plugins/Toaster/src/add_to_start_menu.h
@@ -2,11 +2,9 @@ wchar_t* GetShortcutPath();
HRESULT InstallShortcut(_In_z_ wchar_t *shortcutPath);
__forceinline bool ShortcutExists()
-{
- return !(GetFileAttributes(ptrW(GetShortcutPath())) < 0xFFFFFFF);
+{ return (GetFileAttributes(ptrW(GetShortcutPath())) < 0xFFFFFFF);
}
__forceinline HRESULT TryCreateShortcut()
-{
- return (ShortcutExists() ? S_OK : InstallShortcut(ptrW(GetShortcutPath())));
+{ return (ShortcutExists() ? S_OK : InstallShortcut(ptrW(GetShortcutPath())));
} \ No newline at end of file