From 160f2c6d8f11e60ca3775f9bccc157ba1447f107 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 30 Aug 2015 09:15:36 +0000 Subject: Toaster: fix shortcut git-svn-id: http://svn.miranda-ng.org/main/trunk@15113 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/add_to_start_menu.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Toaster/src/add_to_start_menu.h') 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 -- cgit v1.2.3