diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index fcb141ec078..45467e59d3f 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -3137,7 +3137,7 @@ size_t get_size_procformatstring(const statement_list_t *stmts, type_pred_t pred size += get_size_procformatstring(stmt->u.lib->stmts, pred) - 1; continue; } - else if (stmt->type != STMT_TYPE && stmt->u.type->type != RPC_FC_IP) + else if (stmt->type != STMT_TYPE || stmt->u.type->type != RPC_FC_IP) continue; iface = stmt->u.type;