[PATCH 1/2] oleaut32: Always initialize PARAMDESCEX's cBytes field
Andrew Eikum
aeikum at codeweavers.com
Thu May 16 09:30:35 CDT 2013
---
dlls/oleaut32/typelib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index bb9eaf4..6a2a594 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);
--
1.8.2.3
More information about the wine-patches
mailing list