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.
This commit is contained in:
Rob Shearman 2008-01-07 13:27:05 +00:00 committed by Alexandre Julliard
parent 526cb8c375
commit 06ed169bc5

View File

@ -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)
if (is_attr(var->attrs, ATTR_IN))
{
flags |= 0x40;
if (!is_attr(var->attrs, ATTR_OUT))
flags |= 0x01;
}
if (is_attr(var->attrs, ATTR_IN))
flags |= 0x40;
if (is_attr(var->attrs, ATTR_OUT))
flags |= 0x20;