Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
40336885
Commit
40336885
authored
Aug 15, 2015
by
Michael Müller
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Set SFGAO_HASSUBFOLDER correctly for normal shellfolders.
parent
e8bc1034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
shlfolder.c
dlls/shell32/shlfolder.c
+17
-1
No files found.
dlls/shell32/shlfolder.c
View file @
40336885
...
@@ -441,7 +441,23 @@ HRESULT SHELL32_GetItemAttributes (IShellFolder2 *psf, LPCITEMIDLIST pidl, LPDWO
...
@@ -441,7 +441,23 @@ HRESULT SHELL32_GetItemAttributes (IShellFolder2 *psf, LPCITEMIDLIST pidl, LPDWO
SFGAO_CANRENAME
|
SFGAO_CANLINK
|
SFGAO_CANMOVE
|
SFGAO_CANCOPY
;
SFGAO_CANRENAME
|
SFGAO_CANLINK
|
SFGAO_CANMOVE
|
SFGAO_CANCOPY
;
if
(
file_attr
&
FILE_ATTRIBUTE_DIRECTORY
)
if
(
file_attr
&
FILE_ATTRIBUTE_DIRECTORY
)
*
pdwAttributes
|=
(
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_STORAGEANCESTOR
|
SFGAO_STORAGE
);
{
IEnumIDList
*
enum_list
;
IShellFolder
*
child
;
*
pdwAttributes
|=
(
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_STORAGEANCESTOR
|
SFGAO_STORAGE
);
if
(
SUCCEEDED
(
IShellFolder2_BindToObject
(
psf
,
pidl
,
NULL
,
&
IID_IShellFolder
,
(
void
**
)
&
child
)))
{
if
(
IShellFolder_EnumObjects
(
child
,
NULL
,
SHCONTF_FOLDERS
|
SHCONTF_INCLUDEHIDDEN
,
&
enum_list
)
==
S_OK
)
{
if
(
IEnumIDList_Skip
(
enum_list
,
1
)
!=
S_OK
)
*
pdwAttributes
&=
~
SFGAO_HASSUBFOLDER
;
IEnumIDList_Release
(
enum_list
);
}
IShellFolder_Release
(
child
);
}
}
else
else
{
{
*
pdwAttributes
&=
~
(
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_STORAGEANCESTOR
|
SFGAO_STORAGE
);
*
pdwAttributes
&=
~
(
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_STORAGEANCESTOR
|
SFGAO_STORAGE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment