[PATCH 03/13] widl: fix uninitialized field in VARDESC.
Puetz Kevin A
PuetzKevinA at JohnDeere.com
Thu Aug 6 23:09:22 CDT 2020
Signed-off-by: Kevin Puetz <PuetzKevinA at 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:
More information about the wine-devel
mailing list