[PATCH 03/13] widl: fix uninitialized field in VARDESC.
6 Aug
2020
6 Aug
'20
11:09 p.m.
Signed-off-by: Kevin Puetz <PuetzKevinA(a)JohnDeere.com> --- This was just writing the 0x55555555 from xmalloc The field seems to be unused for VAR_DISPATCH, but was 0 in the typelibs I had to check (which seems reasonable) --- tools/widl/write_msft.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c index 7cfe9e146c..5e21155761 100644 --- a/tools/widl/write_msft.c +++ b/tools/widl/write_msft.c @@ -1751,6 +1751,7 @@ static HRESULT add_var_desc(msft_typeinfo_t *typeinfo, UINT index, var_t* var) break; case TKIND_DISPATCH: var_kind = 3; /* VAR_DISPATCH */ + typedata[4] = 0; typeinfo->datawidth = pointer_size; break; default:
2043
Age (days ago)
2043
Last active (days ago)
0 comments
1 participants
participants (1)
-
Puetz Kevin A