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
3f7c07f5
Commit
3f7c07f5
authored
Apr 09, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Add support of VT_USERDEFINED arguments with default value in AddFuncDesc.
parent
fc456a3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
typelib.c
dlls/oleaut32/tests/typelib.c
+11
-4
typelib2.c
dlls/oleaut32/typelib2.c
+1
-1
No files found.
dlls/oleaut32/tests/typelib.c
View file @
3f7c07f5
...
...
@@ -2048,8 +2048,10 @@ static void test_CreateTypeLib(void) {
elemdesc
[
0
].
tdesc
.
vt
=
VT_USERDEFINED
;
U
(
elemdesc
[
0
].
tdesc
).
hreftype
=
hreftype
;
U
(
elemdesc
[
0
]).
paramdesc
.
pparamdescex
=
NULL
;
U
(
elemdesc
[
0
]).
paramdesc
.
wParamFlags
=
0
;
U
(
elemdesc
[
0
]).
paramdesc
.
pparamdescex
=
&
paramdescex
;
U
(
elemdesc
[
0
]).
paramdesc
.
wParamFlags
=
PARAMFLAG_FHASDEFAULT
;
V_VT
(
&
paramdescex
.
varDefaultValue
)
=
VT_INT
;
V_INT
(
&
paramdescex
.
varDefaultValue
)
=
0x789
;
funcdesc
.
lprgelemdescParam
=
elemdesc
;
funcdesc
.
invkind
=
INVOKE_FUNC
;
...
...
@@ -2077,10 +2079,15 @@ static void test_CreateTypeLib(void) {
ok
(
pfuncdesc
->
wFuncFlags
==
0
,
"got 0x%x
\n
"
,
pfuncdesc
->
wFuncFlags
);
edesc
=
pfuncdesc
->
lprgelemdescParam
;
ok
(
U
(
*
edesc
).
paramdesc
.
pparamdescex
==
NULL
,
"got: %p
\n
"
,
U
(
*
edesc
).
paramdesc
.
pparamdescex
);
ok
(
U
(
*
edesc
).
paramdesc
.
wParamFlags
==
0
,
"got: 0x%x
\n
"
,
U
(
*
edesc
).
paramdesc
.
wParamFlags
);
ok
(
U
(
*
edesc
).
paramdesc
.
pparamdescex
!=
NULL
,
"got: %p
\n
"
,
U
(
*
edesc
).
paramdesc
.
pparamdescex
);
ok
(
U
(
*
edesc
).
paramdesc
.
wParamFlags
==
PARAMFLAG_FHASDEFAULT
,
"got: 0x%x
\n
"
,
U
(
*
edesc
).
paramdesc
.
wParamFlags
);
ok
(
edesc
->
tdesc
.
vt
==
VT_USERDEFINED
,
"got: %d
\n
"
,
edesc
->
tdesc
.
vt
);
ok
(
U
(
edesc
->
tdesc
).
hreftype
==
hreftype
,
"got: 0x%x
\n
"
,
U
(
edesc
->
tdesc
).
hreftype
);
ok
(
V_VT
(
&
U
(
*
edesc
).
paramdesc
.
pparamdescex
->
varDefaultValue
)
==
VT_INT
,
"got: %d
\n
"
,
V_VT
(
&
U
(
*
edesc
).
paramdesc
.
pparamdescex
->
varDefaultValue
));
ok
(
V_INT
(
&
U
(
*
edesc
).
paramdesc
.
pparamdescex
->
varDefaultValue
)
==
0x789
,
"got: %d
\n
"
,
V_INT
(
&
U
(
*
edesc
).
paramdesc
.
pparamdescex
->
varDefaultValue
));
ITypeInfo2_ReleaseFuncDesc
(
ti2
,
pfuncdesc
);
...
...
dlls/oleaut32/typelib2.c
View file @
3f7c07f5
...
...
@@ -886,7 +886,7 @@ static HRESULT ctl2_encode_variant(
arg_type
=
VT_UI4
;
v
=
*
value
;
if
(
arg_type
==
VT_VARIANT
)
{
if
(
arg_type
==
VT_VARIANT
||
arg_type
==
VT_USERDEFINED
)
{
arg_type
=
V_VT
(
value
);
}
else
if
(
V_VT
(
value
)
!=
arg_type
)
{
hres
=
VariantChangeType
(
&
v
,
value
,
0
,
arg_type
);
...
...
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