diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c index 137bb2db2ea..7904e4539fe 100644 --- a/tools/widl/write_msft.c +++ b/tools/widl/write_msft.c @@ -798,6 +798,7 @@ static int encode_type( if (!alignment) alignment = &scratch; if (!decoded_size) decoded_size = &scratch; + *decoded_size = 0; switch (vt) { case VT_I1: