From c74a9eac9317f5838e847a2439f4e8a575e6b613 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 16 May 2013 09:30:35 -0500 Subject: [PATCH] oleaut32: Always initialize PARAMDESCEX's cBytes field. --- dlls/oleaut32/typelib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index bb9eaf4489f..6a2a5947d0b 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5291,6 +5291,7 @@ static HRESULT TLB_CopyElemDesc( const ELEMDESC *src, ELEMDESC *dest, char **buf PARAMDESCEX *pparamdescex_dest = dest->u.paramdesc.pparamdescex = (PARAMDESCEX *)*buffer; *buffer += sizeof(PARAMDESCEX); *pparamdescex_dest = *pparamdescex_src; + pparamdescex_dest->cBytes = sizeof(PARAMDESCEX); VariantInit(&pparamdescex_dest->varDefaultValue); return VariantCopy(&pparamdescex_dest->varDefaultValue, (VARIANTARG *)&pparamdescex_src->varDefaultValue);