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
3373ed8f
Commit
3373ed8f
authored
Jul 15, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/dpa: Don't use start index on searching sorted array.
parent
6a5bb87e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dpa.c
dlls/comctl32/dpa.c
+2
-1
dpa.c
dlls/comctl32/tests/dpa.c
+1
-1
No files found.
dlls/comctl32/dpa.c
View file @
3373ed8f
...
...
@@ -802,7 +802,8 @@ INT WINAPI DPA_Search (const HDPA hdpa, LPVOID pFind, INT nStart,
INT
l
,
r
,
x
,
n
;
LPVOID
*
lpPtr
;
l
=
(
nStart
==
-
1
)
?
0
:
nStart
;
/* for binary search ignore start index */
l
=
0
;
r
=
hdpa
->
nItemCount
-
1
;
lpPtr
=
hdpa
->
ptrs
;
while
(
r
>=
l
)
{
...
...
dlls/comctl32/tests/dpa.c
View file @
3373ed8f
...
...
@@ -289,7 +289,7 @@ static void test_dpa(void)
ok
(
j
==
DPA_ERR
,
"j=%d
\n
"
,
j
);
/* ... but for a binary search it's ignored */
j
=
pDPA_Search
(
dpa
,
(
PVOID
)(
INT_PTR
)
i
,
i
+
1
,
CB_CmpLT
,
0xdeadbeef
,
DPAS_SORTED
);
todo_wine
ok
(
j
+
1
==
i
,
"j=%d i=%d
\n
"
,
j
,
i
);
ok
(
j
+
1
==
i
,
"j=%d i=%d
\n
"
,
j
,
i
);
}
/* Try to get the index of a nonexistent item */
...
...
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