From: Mohamad Al-Jaf mohamadaljaf@gmail.com
Needed by windows.ui.composition.interop.idl. --- tools/widl/typegen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index b3373ded11d..0f000a753df 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -334,6 +334,8 @@ enum typegen_type typegen_detect_type(const type_t *type, const attr_list_t *att (is_attr(attrs, ATTR_RANGE) || is_aliaschain_attr(type, ATTR_RANGE))) return TGT_RANGE; return TGT_ENUM; + case TYPE_VOID: + return TGT_CTXT_HANDLE_POINTER; case TYPE_POINTER: if (type_get_type(type_pointer_get_ref_type(type)) == TYPE_INTERFACE || type_get_type(type_pointer_get_ref_type(type)) == TYPE_RUNTIMECLASS || @@ -355,7 +357,6 @@ enum typegen_type typegen_detect_type(const type_t *type, const attr_list_t *att case TYPE_COCLASS: case TYPE_INTERFACE: case TYPE_MODULE: - case TYPE_VOID: case TYPE_ALIAS: case TYPE_BITFIELD: case TYPE_RUNTIMECLASS: