widl: Fix size parameter for xrealloc (Coccinelle).

This commit is contained in:
Paul Vriens 2010-01-11 08:59:11 +01:00 committed by Alexandre Julliard
parent 9cf1af7cac
commit caaf027e55
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ static void build_iface_list( const statement_list_t *stmts, type_t **ifaces[],
type_t *iface = stmt->u.type; type_t *iface = stmt->u.type;
if (type_iface_get_inherit(iface) && need_proxy(iface)) if (type_iface_get_inherit(iface) && need_proxy(iface))
{ {
*ifaces = xrealloc( *ifaces, (*count + 1) * sizeof(*ifaces) ); *ifaces = xrealloc( *ifaces, (*count + 1) * sizeof(**ifaces) );
(*ifaces)[(*count)++] = iface; (*ifaces)[(*count)++] = iface;
} }
} }