mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
reapply 36982
WIDL: Enable the use of scalar types (non-pointer types) as custom binding handles. svn path=/trunk/; revision=38791
This commit is contained in:
parent
9e097bc205
commit
c58b26652e
1 changed files with 12 additions and 4 deletions
|
@ -537,10 +537,18 @@ const var_t* get_explicit_handle_var(const func_t* func)
|
||||||
|
|
||||||
const type_t* get_explicit_generic_handle_type(const var_t* var)
|
const type_t* get_explicit_generic_handle_type(const var_t* var)
|
||||||
{
|
{
|
||||||
const type_t *t;
|
const type_t *t = var->type;
|
||||||
for (t = var->type; is_ptr(t); t = t->ref)
|
|
||||||
if (t->type != RPC_FC_BIND_PRIMITIVE && is_attr(t->attrs, ATTR_HANDLE))
|
if (t->type == RPC_FC_BIND_PRIMITIVE)
|
||||||
return t;
|
return NULL;
|
||||||
|
|
||||||
|
if (!is_ptr(t) && is_attr(t->attrs, ATTR_HANDLE))
|
||||||
|
return t;
|
||||||
|
else
|
||||||
|
for (; is_ptr(t); t = t->ref)
|
||||||
|
if (t->type != RPC_FC_BIND_PRIMITIVE && is_attr(t->attrs, ATTR_HANDLE))
|
||||||
|
return t;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue