Module: wine Branch: master Commit: 06ed169bc5b2d1f235c80138da6decfa4ca6cf92 URL: http://source.winehq.org/git/wine.git/?a=commit;h=06ed169bc5b2d1f235c80138da...
Author: Rob Shearman rob@codeweavers.com Date: Mon Jan 7 13:27:05 2008 +0000
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.
---
tools/widl/typegen.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index bed46aa..9f4d153 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -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;