Andrew Eikum : oleaut32: Always initialize PARAMDESCEX's cBytes field.
Module: wine Branch: master Commit: c74a9eac9317f5838e847a2439f4e8a575e6b613 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c74a9eac9317f5838e847a2439... Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Thu May 16 09:30:35 2013 -0500 oleaut32: Always initialize PARAMDESCEX's cBytes field. --- dlls/oleaut32/typelib.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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);
participants (1)
-
Alexandre Julliard