Commit 44ccc4f6 authored by Kevin Puetz's avatar Kevin Puetz Committed by Alexandre Julliard

widl: All VARDESC fields of TKIND_UNION should have oInst=0.

Also fix uninitialized value in this field for TKIND_DISPATCH. Signed-off-by: 's avatarKevin Puetz <PuetzKevinA@JohnDeere.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent b43041d7
......@@ -1746,11 +1746,12 @@ static HRESULT add_var_desc(msft_typeinfo_t *typeinfo, UINT index, var_t* var)
typeinfo->datawidth += var_datawidth;
break;
case TKIND_UNION:
typedata[4] = typeinfo->datawidth;
typedata[4] = 0;
typeinfo->datawidth = max(typeinfo->datawidth, var_datawidth);
break;
case TKIND_DISPATCH:
var_kind = 3; /* VAR_DISPATCH */
typedata[4] = 0;
typeinfo->datawidth = pointer_size;
break;
default:
......
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