[3/8] widl: use base pointer type instead of default if not overwritten. (resend)

Rob Shearman robertshearman at gmail.com
Sat Jan 10 16:23:24 CST 2009


2009/1/10 Michael Karcher <wine at mkarcher.dialup.fu-berlin.de>:
> ---
>  tools/widl/proxy.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
> index 4e69190..bb16b72 100644
> --- a/tools/widl/proxy.c
> +++ b/tools/widl/proxy.c
> @@ -182,6 +182,11 @@ int cant_be_null(const var_t *v)
>
>     if (is_ptr(type))
>     {
> +      if (type->type == RPC_FC_FP ||
> +          type->type == RPC_FC_OP ||
> +          type->type == RPC_FC_UP)
> +        return 0;
> +
>       attrs = type->attrs;
>       type = type_pointer_get_ref(type);
>     }

Looks good. Eventually, I want to move this into
typegen.c:get_pointer_fc and in the future determine the pointer type
based on its attributes and whether it is a parameter or not.

Please send to wine-patches.

-- 
Rob Shearman



More information about the wine-devel mailing list