Commit b186c4dd authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

widl: Check for NULL in set_tfswrite.

parent 11b53529
......@@ -1457,7 +1457,7 @@ static void set_tfswrite(type_t *type, int val)
if (type->kind == TKIND_ALIAS)
type = type->orig;
else if (is_ptr(type))
else if (is_ptr(type) || is_array(type))
type = type->ref;
else
{
......@@ -1465,7 +1465,8 @@ static void set_tfswrite(type_t *type, int val)
{
var_t *v;
LIST_FOR_EACH_ENTRY( v, type->fields, var_t, entry )
set_tfswrite(v->type, val);
if (v->type)
set_tfswrite(v->type, val);
}
return;
......
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