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
5027c1b5
Commit
5027c1b5
authored
Apr 22, 2005
by
Stefan Leichter
Committed by
Alexandre Julliard
Apr 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import DPA_Search by ordinal like other DPA functions.
parent
580a333d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dpa.c
dlls/comctl32/tests/dpa.c
+5
-3
No files found.
dlls/comctl32/tests/dpa.c
View file @
5027c1b5
...
...
@@ -30,6 +30,7 @@
static
HDPA
(
WINAPI
*
pDPA_Create
)(
int
);
static
BOOL
(
WINAPI
*
pDPA_Grow
)(
const
HDPA
hdpa
,
INT
nGrow
);
static
BOOL
(
WINAPI
*
pDPA_Destroy
)(
const
HDPA
hdpa
);
static
INT
(
WINAPI
*
pDPA_Search
)(
HDPA
,
LPVOID
,
INT
,
PFNDPACOMPARE
,
LPARAM
,
UINT
);
static
BOOL
(
WINAPI
*
pDPA_SetPtr
)(
const
HDPA
hdpa
,
INT
i
,
LPVOID
p
);
static
INT
CALLBACK
dpa_strcmp
(
LPVOID
pvstr1
,
LPVOID
pvstr2
,
LPARAM
flags
)
...
...
@@ -51,11 +52,11 @@ void DPA_test()
dpa_ret
=
pDPA_Create
(
0
);
ok
((
dpa_ret
!=
0
),
"DPA_Create failed
\n
"
);
int_ret
=
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
);
int_ret
=
p
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
);
ok
((
int_ret
==
-
1
),
"DPA_Search found invalid item
\n
"
);
int_ret
=
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
|
DPAS_INSERTBEFORE
);
int_ret
=
p
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
|
DPAS_INSERTBEFORE
);
ok
((
int_ret
==
0
),
"DPA_Search proposed bad item
\n
"
);
int_ret
=
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
|
DPAS_INSERTAFTER
);
int_ret
=
p
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
|
DPAS_INSERTAFTER
);
ok
((
int_ret
==
0
),
"DPA_Search proposed bad item
\n
"
);
int_ret
=
pDPA_Grow
(
dpa_ret
,
0
);
ok
(
int_ret
!=
0
,
"DPA_Grow failed
\n
"
);
...
...
@@ -73,6 +74,7 @@ START_TEST(dpa)
pDPA_Create
=
(
void
*
)
GetProcAddress
(
hdll
,(
LPCSTR
)
328
);
pDPA_Destroy
=
(
void
*
)
GetProcAddress
(
hdll
,(
LPCSTR
)
329
);
pDPA_Grow
=
(
void
*
)
GetProcAddress
(
hdll
,(
LPCSTR
)
330
);
pDPA_Search
=
(
void
*
)
GetProcAddress
(
hdll
,(
LPCSTR
)
339
);
pDPA_SetPtr
=
(
void
*
)
GetProcAddress
(
hdll
,(
LPCSTR
)
335
);
DPA_test
();
...
...
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