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
af2edc17
Commit
af2edc17
authored
Feb 10, 2020
by
Kevin Puetz
Committed by
Alexandre Julliard
Feb 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use ITypeInfoImpl_GetInternalFuncDesc in ITypeInfo2_fnGetFuncCustData.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e9f89713
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
typelib.c
dlls/oleaut32/typelib.c
+11
-5
No files found.
dlls/oleaut32/typelib.c
View file @
af2edc17
...
...
@@ -1727,7 +1727,7 @@ static inline TLBVarDesc *TLB_get_vardesc_by_name(ITypeInfoImpl *typeinfo, const
return
NULL
;
}
static
inline
TLBCustData
*
TLB_get_custdata_by_guid
(
struct
list
*
custdata_list
,
REFGUID
guid
)
static
inline
TLBCustData
*
TLB_get_custdata_by_guid
(
const
struct
list
*
custdata_list
,
REFGUID
guid
)
{
TLBCustData
*
cust_data
;
LIST_FOR_EACH_ENTRY
(
cust_data
,
custdata_list
,
TLBCustData
,
entry
)
...
...
@@ -8388,14 +8388,20 @@ static HRESULT WINAPI ITypeInfo2_fnGetFuncCustData(
{
ITypeInfoImpl
*
This
=
impl_from_ITypeInfo2
(
iface
);
TLBCustData
*
pCData
;
TLBFuncDesc
*
pFDesc
=
&
This
->
funcdescs
[
index
];
const
TLBFuncDesc
*
desc
;
UINT
hrefoffset
;
HRESULT
hr
;
TRACE
(
"%p %u %s %p
\n
"
,
This
,
index
,
debugstr_guid
(
guid
),
pVarVal
);
if
(
index
>=
This
->
typeattr
.
cFuncs
)
return
TYPE_E_ELEMENTNOTFOUND
;
hr
=
ITypeInfoImpl_GetInternalFuncDesc
((
ITypeInfo
*
)
iface
,
index
,
&
desc
,
&
hrefoffset
);
if
(
FAILED
(
hr
))
{
WARN
(
"description for function %d not found
\n
"
,
index
);
return
hr
;
}
pCData
=
TLB_get_custdata_by_guid
(
&
pFD
esc
->
custdata_list
,
guid
);
pCData
=
TLB_get_custdata_by_guid
(
&
d
esc
->
custdata_list
,
guid
);
if
(
!
pCData
)
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