oleaut32: Use VariantInit() rather than open coding it.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c082edb4bd
commit
f506ffc6d6
|
@ -129,7 +129,7 @@ static HRESULT VARIANT_FromDisp(IDispatch* pdispIn, LCID lcid, void* pOut,
|
||||||
if (SUCCEEDED(hRet))
|
if (SUCCEEDED(hRet))
|
||||||
{
|
{
|
||||||
/* Convert the property to the requested type */
|
/* Convert the property to the requested type */
|
||||||
V_VT(&dstVar) = VT_EMPTY;
|
VariantInit(&dstVar);
|
||||||
hRet = VariantChangeTypeEx(&dstVar, &srcVar, lcid, dwFlags, vt);
|
hRet = VariantChangeTypeEx(&dstVar, &srcVar, lcid, dwFlags, vt);
|
||||||
VariantClear(&srcVar);
|
VariantClear(&srcVar);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue