Andrew Eikum : oleaut32: Always initialize PARAMDESCEX's cBytes field.

Alexandre Julliard julliard at winehq.org
Thu May 16 13:55:06 CDT 2013


Module: wine
Branch: master
Commit: c74a9eac9317f5838e847a2439f4e8a575e6b613
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c74a9eac9317f5838e847a2439f4e8a575e6b613

Author: Andrew Eikum <aeikum at 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);




More information about the wine-cvs mailing list