mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 10:33:27 +00:00
[SHELL32] Don't display .zip files in BrowseForFolder (#7437)
.zip files have both SFGAO_STREAM and SFGAO_FOLDER attributes set (https://devblogs.microsoft.com/oldnewthing/20171101-00/?p=97325) CORE-19751
This commit is contained in:
parent
abf3bde91b
commit
325d74c30f
2 changed files with 10 additions and 4 deletions
|
@ -343,6 +343,15 @@ BrFolder_InsertItem(
|
|||
_In_ PCIDLIST_ABSOLUTE pidlParent,
|
||||
_In_ HTREEITEM hParent)
|
||||
{
|
||||
if (!(BrowseFlagsToSHCONTF(info->lpBrowseInfo->ulFlags) & SHCONTF_NONFOLDERS))
|
||||
{
|
||||
#ifdef BIF_BROWSEFILEJUNCTIONS
|
||||
if (!(info->lpBrowseInfo->ulFlags & BIF_BROWSEFILEJUNCTIONS))
|
||||
#endif
|
||||
if (SHGetAttributes(lpsf, pidlChild, SFGAO_STREAM) & SFGAO_STREAM)
|
||||
return NULL; // .zip files have both FOLDER and STREAM attributes set
|
||||
}
|
||||
|
||||
WCHAR szName[MAX_PATH];
|
||||
if (!BrFolder_GetName(lpsf, pidlChild, SHGDN_NORMAL, szName))
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue