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
92ba2168
Commit
92ba2168
authored
Jan 06, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Improved equal ITEMIDLISTs handling in ILIsParent.
parent
2e7ee8d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pidl.c
dlls/shell32/pidl.c
+5
-3
No files found.
dlls/shell32/pidl.c
View file @
92ba2168
...
...
@@ -544,6 +544,8 @@ BOOL WINAPI ILIsEqual(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
* parent = a/b, child = a/b/c -> true, c is in folder a/b
* child = a/b/c/d -> false if bImmediate is true, d is not in folder a/b
* child = a/b/c/d -> true if bImmediate is false, d is in a subfolder of a/b
* child = a/b -> false if bImmediate is true
* child = a/b -> true if bImmediate is false
*/
BOOL
WINAPI
ILIsParent
(
LPCITEMIDLIST
pidlParent
,
LPCITEMIDLIST
pidlChild
,
BOOL
bImmediate
)
{
...
...
@@ -569,12 +571,12 @@ BOOL WINAPI ILIsParent(LPCITEMIDLIST pidlParent, LPCITEMIDLIST pidlChild, BOOL b
pChild
=
ILGetNext
(
pChild
);
}
/* child
shorter or has equal length to
parent */
if
(
pParent
->
mkid
.
cb
||
!
pChild
->
mkid
.
cb
)
/* child
has shorter name than
parent */
if
(
pParent
->
mkid
.
cb
)
return
FALSE
;
/* not immediate descent */
if
(
ILGetNext
(
pChild
)
->
mkid
.
cb
&&
bImmediate
)
if
(
(
!
pChild
->
mkid
.
cb
||
ILGetNext
(
pChild
)
->
mkid
.
cb
)
&&
bImmediate
)
return
FALSE
;
return
TRUE
;
...
...
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