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
a5aa8dc1
Commit
a5aa8dc1
authored
Jan 19, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DPA_Create is missing from all recent import libraries so use
GetProcAddress to load it. Add '\n' to 'ok' calls.
parent
ed325359
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
dpa.c
dlls/comctl32/tests/dpa.c
+17
-8
No files found.
dlls/comctl32/tests/dpa.c
View file @
a5aa8dc1
...
...
@@ -29,11 +29,13 @@
#include "wine/test.h"
static
HDPA
(
WINAPI
*
pDPA_Create
)(
int
);
static
INT
CALLBACK
dpa_strcmp
(
LPVOID
pvstr1
,
LPVOID
pvstr2
,
LPARAM
flags
)
{
LPCSTR
str1
=
(
LPCSTR
)
pvstr1
;
LPCSTR
str2
=
(
LPCSTR
)
pvstr2
;
return
lstrcmpA
(
str1
,
str2
);
}
...
...
@@ -42,19 +44,26 @@ void DPA_test()
HDPA
dpa_ret
;
INT
int_ret
;
CHAR
test_str0
[]
=
"test0"
;
dpa_ret
=
DPA_Create
(
0
);
ok
((
dpa_ret
!=
0
),
"DPA_Create failed"
);
if
(
!
pDPA_Create
)
return
;
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
);
ok
((
int_ret
==
-
1
),
"DPA_Search found invalid item"
);
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
);
ok
((
int_ret
==
0
),
"DPA_Search proposed bad item"
);
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
);
ok
((
int_ret
==
0
),
"DPA_Search proposed bad item"
);
ok
((
int_ret
==
0
),
"DPA_Search proposed bad item
\n
"
);
}
START_TEST
(
dpa
)
{
HMODULE
hdll
;
hdll
=
GetModuleHandleA
(
"comctl32.dll"
);
pDPA_Create
=
(
void
*
)
GetProcAddress
(
hdll
,(
LPCSTR
)
328
);
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