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
983ad4ac
Commit
983ad4ac
authored
May 31, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Resolve referenced types for return values as well as parameters in MSFT typelibs.
parent
fa4f94bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
27 deletions
+30
-27
typelib.c
dlls/oleaut32/typelib.c
+30
-27
No files found.
dlls/oleaut32/typelib.c
View file @
983ad4ac
...
...
@@ -1643,6 +1643,34 @@ static void MSFT_GetTdesc(TLBContext *pcx, INT type, TYPEDESC *pTd,
TRACE_
(
typelib
)(
"vt type = %X
\n
"
,
pTd
->
vt
);
}
static
void
MSFT_ResolveReferencedTypes
(
TLBContext
*
pcx
,
ITypeInfoImpl
*
pTI
,
TYPEDESC
*
lpTypeDesc
)
{
/* resolve referenced type if any */
while
(
lpTypeDesc
)
{
switch
(
lpTypeDesc
->
vt
)
{
case
VT_PTR
:
lpTypeDesc
=
lpTypeDesc
->
u
.
lptdesc
;
break
;
case
VT_CARRAY
:
lpTypeDesc
=
&
(
lpTypeDesc
->
u
.
lpadesc
->
tdescElem
);
break
;
case
VT_USERDEFINED
:
MSFT_DoRefType
(
pcx
,
pTI
,
lpTypeDesc
->
u
.
hreftype
);
lpTypeDesc
=
NULL
;
break
;
default:
lpTypeDesc
=
NULL
;
}
}
}
static
void
MSFT_DoFuncs
(
TLBContext
*
pcx
,
ITypeInfoImpl
*
pTI
,
...
...
@@ -1764,6 +1792,7 @@ MSFT_DoFuncs(TLBContext* pcx,
pFuncRec
->
DataType
,
&
(
*
pptfd
)
->
funcdesc
.
elemdescFunc
.
tdesc
,
pTI
);
MSFT_ResolveReferencedTypes
(
pcx
,
pTI
,
&
(
*
pptfd
)
->
funcdesc
.
elemdescFunc
.
tdesc
);
/* do the parameters/arguments */
if
(
pFuncRec
->
nrargs
)
...
...
@@ -1782,7 +1811,6 @@ MSFT_DoFuncs(TLBContext* pcx,
for
(
j
=
0
;
j
<
pFuncRec
->
nrargs
;
j
++
)
{
TYPEDESC
*
lpArgTypeDesc
;
ELEMDESC
*
elemdesc
=
&
(
*
pptfd
)
->
funcdesc
.
lprgelemdescParam
[
j
];
MSFT_GetTdesc
(
pcx
,
...
...
@@ -1803,32 +1831,7 @@ MSFT_DoFuncs(TLBContext* pcx,
MSFT_ReadName
(
pcx
,
paraminfo
.
oName
);
TRACE_
(
typelib
)(
"param[%d] = %s
\n
"
,
j
,
debugstr_w
((
*
pptfd
)
->
pParamDesc
[
j
].
Name
));
lpArgTypeDesc
=
&
elemdesc
->
tdesc
;
/* resolve referenced type if any */
while
(
lpArgTypeDesc
!=
NULL
)
{
switch
(
lpArgTypeDesc
->
vt
)
{
case
VT_PTR
:
lpArgTypeDesc
=
lpArgTypeDesc
->
u
.
lptdesc
;
break
;
case
VT_CARRAY
:
lpArgTypeDesc
=
&
(
lpArgTypeDesc
->
u
.
lpadesc
->
tdescElem
);
break
;
case
VT_USERDEFINED
:
MSFT_DoRefType
(
pcx
,
pTI
,
lpArgTypeDesc
->
u
.
hreftype
);
lpArgTypeDesc
=
NULL
;
break
;
default:
lpArgTypeDesc
=
NULL
;
}
}
MSFT_ResolveReferencedTypes
(
pcx
,
pTI
,
&
elemdesc
->
tdesc
);
/* default value */
if
(
(
elemdesc
->
u
.
paramdesc
.
wParamFlags
&
PARAMFLAG_FHASDEFAULT
)
&&
...
...
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