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
90c3c89a
Commit
90c3c89a
authored
Aug 01, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed regression in DPA_Search.
parent
068fa0aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
dpa.c
dlls/comctl32/dpa.c
+1
-2
dpa.c
dlls/comctl32/tests/dpa.c
+4
-0
No files found.
dlls/comctl32/dpa.c
View file @
90c3c89a
...
...
@@ -815,8 +815,7 @@ INT WINAPI DPA_Search (const HDPA hdpa, LPVOID pFind, INT nStart,
else
/* (n > 0) */
l
=
x
+
1
;
}
return
l
;
if
(
uOptions
&
(
DPAS_INSERTBEFORE
|
DPAS_INSERTAFTER
))
return
l
;
}
else
{
/* array is not sorted --> use linear search */
...
...
dlls/comctl32/tests/dpa.c
View file @
90c3c89a
...
...
@@ -307,6 +307,10 @@ static void test_dpa(void)
i
=
pDPA_Search
(
dpa
,
(
PVOID
)
3
,
0
,
CB_CmpLT
,
0xdeadbeef
,
DPAS_SORTED
|
DPAS_INSERTBEFORE
);
ok
(
i
==
2
,
"i=%d
\n
"
,
i
);
/* without DPAS_INSERTBEFORE/AFTER */
i
=
pDPA_Search
(
dpa
,
(
PVOID
)
3
,
0
,
CB_CmpLT
,
0xdeadbeef
,
DPAS_SORTED
);
ok
(
i
==
-
1
,
"i=%d
\n
"
,
i
);
/* Re-insert the item */
ret
=
pDPA_InsertPtr
(
dpa
,
2
,
(
PVOID
)
3
);
...
...
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