widl: Don't add NULL pointer checks in generated code for user types.

This commit is contained in:
Rob Shearman 2008-12-30 18:48:43 +00:00 committed by Alexandre Julliard
parent cdf88e9c29
commit c6e7609b01
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ int cant_be_null(const var_t *v)
if (is_aliaschain_attr(type, ATTR_CONTEXTHANDLE)) if (is_aliaschain_attr(type, ATTR_CONTEXTHANDLE))
return 0; return 0;
if (is_user_type(type))
return 0;
if (! attrs && type) if (! attrs && type)
{ {
attrs = type->attrs; attrs = type->attrs;