diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-08-31 20:36:18 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-08-31 20:36:18 +0000 |
commit | 0ed4c703d7de168e5f59c84cb7d447a42e27877e (patch) | |
tree | 20360ca25e42d4fd29e26ddbeeda5a46cb7a684e /plugins/Toaster/src/add_to_start_menu.h | |
parent | 9f87be3ed2ddf7db63e7b5d554df84122e2b21bb (diff) |
Toaster: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@15131 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/add_to_start_menu.h')
-rw-r--r-- | plugins/Toaster/src/add_to_start_menu.h | 12 |
1 files changed, 4 insertions, 8 deletions
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 |