oleaut32: Always initialize PARAMDESCEX's cBytes field.
This commit is contained in:
parent
508b0c9c44
commit
c74a9eac93
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue