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
db498b3b
Commit
db498b3b
authored
Feb 10, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use ITypeInfoImpl_GetInternalFuncDesc in a few more places.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cdb72b09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
typelib.c
dlls/oleaut32/typelib.c
+19
-10
No files found.
dlls/oleaut32/typelib.c
View file @
db498b3b
...
...
@@ -5264,7 +5264,7 @@ static HRESULT WINAPI ITypeLib2_fnGetDocumentation2(
return
result
;
}
static
HRESULT
TLB_copy_all_custdata
(
struct
list
*
custdata_list
,
CUSTDATA
*
pCustData
)
static
HRESULT
TLB_copy_all_custdata
(
const
struct
list
*
custdata_list
,
CUSTDATA
*
pCustData
)
{
TLBCustData
*
pCData
;
unsigned
int
ct
;
...
...
@@ -8418,14 +8418,17 @@ static HRESULT WINAPI ITypeInfo2_fnGetParamCustData(
VARIANT
*
pVarVal
)
{
ITypeInfoImpl
*
This
=
impl_from_ITypeInfo2
(
iface
);
const
TLBFuncDesc
*
pFDesc
;
TLBCustData
*
pCData
;
TLBFuncDesc
*
pFDesc
=
&
This
->
funcdescs
[
indexFunc
];
UINT
hrefoffset
;
HRESULT
hr
;
TRACE
(
"%p %u %u %s %p
\n
"
,
This
,
indexFunc
,
indexParam
,
debugstr_guid
(
guid
),
pVarVal
);
if
(
indexFunc
>=
This
->
typeattr
.
cFuncs
)
return
TYPE_E_ELEMENTNOTFOUND
;
hr
=
ITypeInfoImpl_GetInternalFuncDesc
((
ITypeInfo
*
)
iface
,
indexFunc
,
&
pFDesc
,
&
hrefoffset
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
indexParam
>=
pFDesc
->
funcdesc
.
cParams
)
return
TYPE_E_ELEMENTNOTFOUND
;
...
...
@@ -8587,12 +8590,15 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllFuncCustData(
CUSTDATA
*
pCustData
)
{
ITypeInfoImpl
*
This
=
impl_from_ITypeInfo2
(
iface
);
TLBFuncDesc
*
pFDesc
=
&
This
->
funcdescs
[
index
];
const
TLBFuncDesc
*
pFDesc
;
UINT
hrefoffset
;
HRESULT
hr
;
TRACE
(
"%p %u %p
\n
"
,
This
,
index
,
pCustData
);
if
(
index
>=
This
->
typeattr
.
cFuncs
)
return
TYPE_E_ELEMENTNOTFOUND
;
hr
=
ITypeInfoImpl_GetInternalFuncDesc
((
ITypeInfo
*
)
iface
,
index
,
&
pFDesc
,
&
hrefoffset
);
if
(
FAILED
(
hr
))
return
hr
;
return
TLB_copy_all_custdata
(
&
pFDesc
->
custdata_list
,
pCustData
);
}
...
...
@@ -8606,12 +8612,15 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllParamCustData( ITypeInfo2 * iface,
UINT
indexFunc
,
UINT
indexParam
,
CUSTDATA
*
pCustData
)
{
ITypeInfoImpl
*
This
=
impl_from_ITypeInfo2
(
iface
);
TLBFuncDesc
*
pFDesc
=
&
This
->
funcdescs
[
indexFunc
];
const
TLBFuncDesc
*
pFDesc
;
UINT
hrefoffset
;
HRESULT
hr
;
TRACE
(
"%p %u %u %p
\n
"
,
This
,
indexFunc
,
indexParam
,
pCustData
);
if
(
indexFunc
>=
This
->
typeattr
.
cFuncs
)
return
TYPE_E_ELEMENTNOTFOUND
;
hr
=
ITypeInfoImpl_GetInternalFuncDesc
((
ITypeInfo
*
)
iface
,
indexFunc
,
&
pFDesc
,
&
hrefoffset
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
indexParam
>=
pFDesc
->
funcdesc
.
cParams
)
return
TYPE_E_ELEMENTNOTFOUND
;
...
...
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