mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[RSHELL]
* the Programs menu is localized. Obtain it the right way. svn path=/branches/shell-experiments/; revision=63711
This commit is contained in:
parent
88f0fb5a47
commit
c3479eb2b2
1 changed files with 5 additions and 4 deletions
|
@ -380,6 +380,7 @@ CStartMenu_Constructor(REFIID riid, void **ppv)
|
|||
HRESULT hr;
|
||||
IShellFolder * psf;
|
||||
|
||||
LPITEMIDLIST pidlProgramsAbsolute;
|
||||
LPITEMIDLIST pidlPrograms;
|
||||
CComPtr<IShellFolder> psfPrograms;
|
||||
|
||||
|
@ -410,10 +411,10 @@ CStartMenu_Constructor(REFIID riid, void **ppv)
|
|||
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))
|
||||
|
|
Loading…
Reference in a new issue