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
5d05d4ac
Commit
5d05d4ac
authored
Dec 10, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/typelib: Get rid of redundant argument in typeinfo lookup helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2dfcb31c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
typelib.c
dlls/oleaut32/typelib.c
+10
-9
No files found.
dlls/oleaut32/typelib.c
View file @
5d05d4ac
...
...
@@ -1724,15 +1724,16 @@ static inline TLBCustData *TLB_get_custdata_by_guid(struct list *custdata_list,
return
NULL
;
}
static
inline
ITypeInfoImpl
*
TLB_get_typeinfo_by_name
(
ITypeInfoImpl
**
typeinfos
,
UINT
n
,
const
OLECHAR
*
name
)
static
inline
ITypeInfoImpl
*
TLB_get_typeinfo_by_name
(
ITypeLibImpl
*
typelib
,
const
OLECHAR
*
name
)
{
while
(
n
){
if
(
!
lstrcmpiW
(
TLB_get_bstr
((
*
typeinfos
)
->
Name
),
name
))
return
*
typeinfos
;
++
typeinfos
;
--
n
;
int
i
;
for
(
i
=
0
;
i
<
typelib
->
TypeInfoCount
;
++
i
)
{
if
(
!
lstrcmpiW
(
TLB_get_bstr
(
typelib
->
typeinfos
[
i
]
->
Name
),
name
))
return
typelib
->
typeinfos
[
i
];
}
return
NULL
;
}
...
...
@@ -5507,7 +5508,7 @@ static HRESULT WINAPI ITypeLibComp_fnBindType(
if
(
!
szName
||
!
ppTInfo
||
!
ppTComp
)
return
E_INVALIDARG
;
info
=
TLB_get_typeinfo_by_name
(
This
->
typeinfos
,
This
->
TypeInfoCount
,
szName
);
info
=
TLB_get_typeinfo_by_name
(
This
,
szName
);
if
(
!
info
){
*
ppTInfo
=
NULL
;
*
ppTComp
=
NULL
;
...
...
@@ -9007,7 +9008,7 @@ static HRESULT WINAPI ICreateTypeLib2_fnCreateTypeInfo(ICreateTypeLib2 *iface,
if
(
!
ctinfo
||
!
name
)
return
E_INVALIDARG
;
info
=
TLB_get_typeinfo_by_name
(
This
->
typeinfos
,
This
->
TypeInfoCount
,
name
);
info
=
TLB_get_typeinfo_by_name
(
This
,
name
);
if
(
info
)
return
TYPE_E_NAMECONFLICT
;
...
...
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