From d3e522055bb58e8d4aa735ef8c0c449b7b32effc Mon Sep 17 00:00:00 2001 From: kh1 Date: Thu, 8 Nov 2012 15:32:40 +0100 Subject: Support stone age OS's as well, seems some users didn't yet upgrade. Change-Id: Ifdd5d62658c3258a8647f88bcab84555ee58419b Reviewed-by: Robert Loehning Reviewed-by: Tim Jenssen --- src/libs/installer/createshortcutoperation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libs/installer/createshortcutoperation.cpp') diff --git a/src/libs/installer/createshortcutoperation.cpp b/src/libs/installer/createshortcutoperation.cpp index 7c181290b..3683476e6 100644 --- a/src/libs/installer/createshortcutoperation.cpp +++ b/src/libs/installer/createshortcutoperation.cpp @@ -119,11 +119,11 @@ static bool createLink(const QString &fileName, const QString &linkName, QString psl->Release(); PIDLIST_ABSOLUTE pidl; // Force start menu cache update - if (SUCCEEDED(SHGetKnownFolderIDList(FOLDERID_StartMenu, 0, 0, &pidl))) { + if (SUCCEEDED(SHGetFolderLocation(0, CSIDL_STARTMENU, 0, 0, &pidl))) { SHChangeNotify(SHCNE_UPDATEDIR, SHCNF_IDLIST, pidl, 0); CoTaskMemFree(pidl); } - if (SUCCEEDED(SHGetKnownFolderIDList(FOLDERID_CommonStartMenu, 0, 0, &pidl))) { + if (SUCCEEDED(SHGetFolderLocation(0, CSIDL_COMMON_STARTMENU, 0, 0, &pidl))) { SHChangeNotify(SHCNE_UPDATEDIR, SHCNF_IDLIST, pidl, 0); CoTaskMemFree(pidl); } -- cgit v1.2.3