Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8669fa73
Commit
8669fa73
authored
Jun 28, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Make iterator_remove_common_items working on one range iterators.
parent
ebcf08e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
listview.c
dlls/comctl32/listview.c
+33
-0
No files found.
dlls/comctl32/listview.c
View file @
8669fa73
...
...
@@ -1501,6 +1501,39 @@ static BOOL iterator_visibleitems(ITERATOR *i, const LISTVIEW_INFO *infoPtr, HDC
/* Passed iterators have to point on the first elements */
static
BOOL
iterator_remove_common_items
(
ITERATOR
*
iter1
,
ITERATOR
*
iter2
)
{
if
(
!
iter1
->
ranges
||
!
iter2
->
ranges
)
{
int
lower
,
upper
;
if
(
iter1
->
ranges
||
iter2
->
ranges
||
(
iter1
->
range
.
lower
<
iter2
->
range
.
lower
&&
iter1
->
range
.
upper
>
iter2
->
range
.
upper
)
||
(
iter1
->
range
.
lower
>
iter2
->
range
.
lower
&&
iter1
->
range
.
upper
<
iter2
->
range
.
upper
))
{
ERR
(
"result is not a one range iterator
\n
"
);
return
FALSE
;
}
if
(
iter1
->
range
.
lower
==-
1
||
iter2
->
range
.
lower
==-
1
)
return
TRUE
;
lower
=
iter1
->
range
.
lower
;
upper
=
iter1
->
range
.
upper
;
if
(
lower
<
iter2
->
range
.
lower
)
iter1
->
range
.
upper
=
iter2
->
range
.
lower
;
else
if
(
upper
>
iter2
->
range
.
upper
)
iter1
->
range
.
lower
=
iter2
->
range
.
upper
;
else
iter1
->
range
.
lower
=
iter1
->
range
.
upper
=
-
1
;
if
(
iter2
->
range
.
lower
<
lower
)
iter2
->
range
.
upper
=
lower
;
else
if
(
iter2
->
range
.
upper
>
upper
)
iter2
->
range
.
lower
=
upper
;
else
iter2
->
range
.
lower
=
iter2
->
range
.
upper
=
-
1
;
return
TRUE
;
}
iterator_next
(
iter1
);
iterator_next
(
iter2
);
...
...
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