Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
wine
wine-cw
Commits
8167c415
Commit
8167c415
authored
Feb 20, 2006
by
Martin Fuchs
Committed by
Alexandre Julliard
Feb 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Avoid recursing SHELL32_GetItemAttributes() calls.
parent
5ed59015
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
shlfolder.c
dlls/shell32/shlfolder.c
+12
-3
No files found.
dlls/shell32/shlfolder.c
View file @
8167c415
...
...
@@ -425,11 +425,20 @@ HRESULT SHELL32_GetItemAttributes (IShellFolder * psf, LPCITEMIDLIST pidl, LPDWO
if
(
!
dwAttributes
&&
has_guid
)
{
WCHAR
path
[
MAX_PATH
];
STRRET
strret
;
/* File attributes are not present in the internal PIDL structure, so get them from the file system. */
if
(
SHGetPathFromIDListW
(
pidl
,
path
))
dwAttributes
=
GetFileAttributesW
(
path
);
}
HRESULT
hr
=
IShellFolder_GetDisplayNameOf
(
psf
,
pidl
,
SHGDN_FORPARSING
,
&
strret
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
StrRetToBufW
(
&
strret
,
pidl
,
path
,
MAX_PATH
);
/* call GetFileAttributes() only for file system paths, not for parsing names like "::{...}" */
if
(
SUCCEEDED
(
hr
)
&&
path
[
0
]
!=
':'
)
dwAttributes
=
GetFileAttributesW
(
path
);
}
}
/* Set common attributes */
*
pdwAttributes
|=
SFGAO_FILESYSTEM
|
SFGAO_DROPTARGET
|
SFGAO_HASPROPSHEET
|
SFGAO_CANDELETE
|
...
...
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