widl: Fix crash dealing with anonymous unions.

This commit is contained in:
Dan Hipschman 2007-06-25 18:24:53 -07:00 committed by Alexandre Julliard
parent 512c36cae6
commit 704f2868ed

View File

@ -574,7 +574,7 @@ static size_t write_conf_or_var_desc(FILE *file, const func_t *func, const type_
{
unsigned int align = 0;
/* FIXME: take alignment into account */
if (!strcmp(var->name, subexpr->u.sval))
if (var->name && !strcmp(var->name, subexpr->u.sval))
{
correlation_variable = var->type;
break;