mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[0.4.13][BROWSEUI][SHELLFIND] Allow to 'Open Containing Folder' CORE-16391
of a search result again. The feature regressed by 0.4.13-dev-1133-ga3ee648d8b
I chose the shorter solution of Brock Mammen instead of the patch of Doug Lyons from PR1960. Still many thanks to Doug Lyons for his encouragement in creating a fix as well and performing regression-testing. cherry picked from commit 0.4.14-dev-39-gcd2a274ef7
This commit is contained in:
parent
44202f0749
commit
e2e90230d1
1 changed files with 4 additions and 2 deletions
|
@ -556,8 +556,10 @@ class CFindFolderContextMenu :
|
|||
CComHeapPtr<ITEMIDLIST> folderPidl(ILCreateFromPathW(_ILGetPath(apidl[i])));
|
||||
if (!folderPidl)
|
||||
return E_OUTOFMEMORY;
|
||||
LPCITEMIDLIST pidl = _ILGetFSPidl(apidl[i]);
|
||||
SHOpenFolderAndSelectItems(folderPidl, 1, &pidl, 0);
|
||||
CComHeapPtr<ITEMIDLIST> filePidl(ILCombine(folderPidl, _ILGetFSPidl(apidl[i])));
|
||||
if (!filePidl)
|
||||
return E_OUTOFMEMORY;
|
||||
SHOpenFolderAndSelectItems(folderPidl, 1, &filePidl, 0);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue