From 0ed4c703d7de168e5f59c84cb7d447a42e27877e Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 31 Aug 2015 20:36:18 +0000 Subject: Toaster: code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@15131 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/add_to_start_menu.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 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 f4bccab295..17d22ba6ad 100644 --- a/plugins/Toaster/src/add_to_start_menu.h +++ b/plugins/Toaster/src/add_to_start_menu.h @@ -1,10 +1,6 @@ -wchar_t* GetShortcutPath(); -HRESULT InstallShortcut(_In_z_ wchar_t *shortcutPath); +#ifndef _ADD_TOSTART_MENU_H_ +#define _ADD_TOSTART_MENU_H_ -__forceinline bool ShortcutExists() -{ return (GetFileAttributes(ptrW(GetShortcutPath())) < 0xFFFFFFF); -} +HRESULT TryCreateShortcut(); -__forceinline HRESULT TryCreateShortcut() -{ return (ShortcutExists() ? S_OK : InstallShortcut(ptrW(GetShortcutPath()))); -} \ No newline at end of file +#endif //_ADD_TOSTART_MENU_H_ \ No newline at end of file -- cgit v1.2.3