mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 18:04:21 +00:00
Check that there are some methods to iterate through before iterating
through them.
This commit is contained in:
parent
a3d0eeb9f6
commit
653c05971c
|
@ -1618,7 +1618,7 @@ static void add_interface_typeinfo(msft_typelib_t *typelib, type_t *interface)
|
|||
msft_typeinfo->typeinfo->datatype2 = num_funcs << 16 | num_parents;
|
||||
msft_typeinfo->typeinfo->cbSizeVft = num_funcs * 4;
|
||||
|
||||
func = interface->funcs;
|
||||
if((func = interface->funcs)) {
|
||||
while(NEXT_LINK(func)) func = NEXT_LINK(func);
|
||||
while(func) {
|
||||
if(add_func_desc(msft_typeinfo, func, idx) == S_OK)
|
||||
|
@ -1626,6 +1626,7 @@ static void add_interface_typeinfo(msft_typelib_t *typelib, type_t *interface)
|
|||
func = PREV_LINK(func);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void add_structure_typeinfo(msft_typelib_t *typelib, type_t *structure)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue