Commit 06ed169b authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Fix context handle "cannot be null" detection.

The "cannot be null" attibute is applied to a parameter if and only if it is in-only.
parent 526cb8c3
......@@ -2064,13 +2064,13 @@ static size_t write_contexthandle_tfs(FILE *file, const type_t *type,
flags |= 0x08 /* strict */;
if (is_ptr(type))
{
flags |= 0x80;
if (type->type != RPC_FC_RP)
flags |= 0x01;
}
if (is_attr(var->attrs, ATTR_IN))
{
flags |= 0x40;
if (!is_attr(var->attrs, ATTR_OUT))
flags |= 0x01;
}
if (is_attr(var->attrs, ATTR_OUT))
flags |= 0x20;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment