Rémi Bernon : widl: Always check the runtimeclass interfaces presence.
Alexandre Julliard
julliard at winehq.org
Fri Mar 19 16:42:01 CDT 2021
Module: wine
Branch: master
Commit: aa119a1e065c56062c5704f4178d5b8f30d4b005
URL: https://source.winehq.org/git/wine.git/?a=commit;h=aa119a1e065c56062c5704f4178d5b8f30d4b005
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Fri Mar 19 09:51:44 2021 +0100
widl: Always check the runtimeclass interfaces presence.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/widl/typetree.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/widl/typetree.h b/tools/widl/typetree.h
index b43b6bfbf79..db723817266 100644
--- a/tools/widl/typetree.h
+++ b/tools/widl/typetree.h
@@ -387,8 +387,7 @@ static inline type_t *type_runtimeclass_get_default_iface(const type_t *type, in
typeref_list_t *ifaces = type_runtimeclass_get_ifaces(type);
typeref_t *ref;
- if (!ifaces) return NULL;
- LIST_FOR_EACH_ENTRY(ref, ifaces, typeref_t, entry)
+ if (ifaces) LIST_FOR_EACH_ENTRY(ref, ifaces, typeref_t, entry)
if (is_attr(ref->attrs, ATTR_DEFAULT))
return ref->type;
More information about the wine-cvs
mailing list