From: Mohamad Al-Jaf mohamadaljaf@gmail.com
Needed by windows.ui.composition.interop.idl. --- tools/widl/typegen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index b3373ded11d..6990bd5f75f 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -329,6 +329,10 @@ 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_BASIC; + case TYPE_VOID: + if (is_aliaschain_attr(type, ATTR_CONTEXTHANDLE)) + return TGT_CTXT_HANDLE; + return TGT_BASIC; case TYPE_ENUM: if (!(flags & TDT_IGNORE_RANGES) && (is_attr(attrs, ATTR_RANGE) || is_aliaschain_attr(type, ATTR_RANGE))) @@ -355,7 +359,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: