mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:45:41 +00:00
[SHELL32]
- Fix a bug in CStartMenu_Constructor and add some comments to explain what this part does. svn path=/trunk/; revision=72221
This commit is contained in:
parent
09e88a8e27
commit
21f8a27469
1 changed files with 3 additions and 1 deletions
|
@ -472,6 +472,7 @@ CStartMenu_Constructor(REFIID riid, void **ppv)
|
|||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
/* psf is a merged folder, so now we want to get the pidl of the programs item from the merged folder */
|
||||
{
|
||||
hr = SHGetSpecialFolderLocation(NULL, CSIDL_PROGRAMS, &pidlProgramsAbsolute);
|
||||
if (FAILED(hr))
|
||||
|
@ -491,13 +492,14 @@ CStartMenu_Constructor(REFIID riid, void **ppv)
|
|||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
||||
hr = psfParent->GetDisplayNameOf(pcidlPrograms, SHGDN_NORMAL, &str);
|
||||
hr = psfParent->GetDisplayNameOf(pcidlPrograms, SHGDN_FORPARSING | SHGDN_INFOLDER, &str);
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
||||
StrRetToBuf(&str, pcidlPrograms, szDisplayName, _countof(szDisplayName));
|
||||
ILFree(pidlProgramsAbsolute);
|
||||
|
||||
/* We got the display name from the fs folder and we parse it with the merged folder here */
|
||||
hr = psf->ParseDisplayName(NULL, NULL, szDisplayName, NULL, &pidlPrograms, NULL);
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue