Author: dquintana
Date: Sat Jul 12 12:40:50 2014
New Revision: 63711
URL:
http://svn.reactos.org/svn/reactos?rev=63711&view=rev
Log:
[RSHELL]
* the Programs menu is localized. Obtain it the right way.
Modified:
branches/shell-experiments/base/shell/rshell/CStartMenu.cpp
Modified: branches/shell-experiments/base/shell/rshell/CStartMenu.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/shell-experiments/base/shell/rs…
==============================================================================
--- branches/shell-experiments/base/shell/rshell/CStartMenu.cpp [iso-8859-1] (original)
+++ branches/shell-experiments/base/shell/rshell/CStartMenu.cpp [iso-8859-1] Sat Jul 12
12:40:50 2014
@@ -380,6 +380,7 @@
HRESULT hr;
IShellFolder * psf;
+ LPITEMIDLIST pidlProgramsAbsolute;
LPITEMIDLIST pidlPrograms;
CComPtr<IShellFolder> psfPrograms;
@@ -410,10 +411,10 @@
if (FAILED_UNEXPECTEDLY(hr))
return hr;
- WCHAR name[] = L"Programs";
- hr = psf->ParseDisplayName(NULL, NULL, name, NULL, &pidlPrograms, NULL);
- if (FAILED_UNEXPECTEDLY(hr))
- return hr;
+ hr = SHGetSpecialFolderLocation(NULL, CSIDL_PROGRAMS, &pidlProgramsAbsolute);
+
+ pidlPrograms = ILClone(ILFindLastID(pidlProgramsAbsolute));
+ ILFree(pidlProgramsAbsolute);
hr = psf->BindToObject(pidlPrograms, NULL, IID_PPV_ARG(IShellFolder,
&psfPrograms));
if (FAILED_UNEXPECTEDLY(hr))