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
6ebe1ec4
Commit
6ebe1ec4
authored
Feb 22, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Added VT_PTR tests in function arguments.
parent
3102176c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
typelib.c
dlls/oleaut32/tests/typelib.c
+15
-2
No files found.
dlls/oleaut32/tests/typelib.c
View file @
6ebe1ec4
...
...
@@ -986,6 +986,7 @@ static void test_CreateTypeLib(void) {
FUNCDESC
funcdesc
;
ELEMDESC
elemdesc
[
5
];
PARAMDESCEX
paramdescex
;
TYPEDESC
typedesc1
,
typedesc2
;
HRESULT
hres
;
trace
(
"CreateTypeLib tests
\n
"
);
...
...
@@ -1053,13 +1054,25 @@ static void test_CreateTypeLib(void) {
hres
=
ICreateTypeInfo_AddFuncDesc
(
createti
,
1
,
&
funcdesc
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
elemdesc
[
0
].
tdesc
.
vt
=
VT_PTR
;
elemdesc
[
0
].
tdesc
.
lptdesc
=
&
typedesc1
;
typedesc1
.
vt
=
VT_BSTR
;
funcdesc
.
cParams
=
1
;
funcdesc
.
lprgelemdescParam
=
elemdesc
;
hres
=
ICreateTypeInfo_AddFuncDesc
(
createti
,
4
,
&
funcdesc
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
elemdesc
[
0
].
tdesc
.
lptdesc
=
&
typedesc2
;
typedesc2
.
vt
=
VT_PTR
;
typedesc2
.
lptdesc
=
&
typedesc1
;
hres
=
ICreateTypeInfo_AddFuncDesc
(
createti
,
4
,
&
funcdesc
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
elemdesc
[
0
].
tdesc
.
vt
=
VT_INT
;
elemdesc
[
0
].
paramdesc
.
wParamFlags
=
PARAMFLAG_FHASDEFAULT
;
elemdesc
[
0
].
paramdesc
.
pparamdescex
=
&
paramdescex
;
V_VT
(
&
paramdescex
.
varDefaultValue
)
=
VT_INT
;
V_INT
(
&
paramdescex
.
varDefaultValue
)
=
0x123
;
funcdesc
.
lprgelemdescParam
=
elemdesc
;
funcdesc
.
cParams
=
1
;
hres
=
ICreateTypeInfo_AddFuncDesc
(
createti
,
3
,
&
funcdesc
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
...
...
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