mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
oleaut32: Always initialize PARAMDESCEX's cBytes field.
This commit is contained in:
parent
508b0c9c44
commit
c74a9eac93
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue