Huw Davies : oleaut32: Use VariantInit() rather than open coding it.
Module: wine Branch: master Commit: f506ffc6d6fbf577cfaec32ee781d7fc932995d8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f506ffc6d6fbf577cfaec32ee7... Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Apr 18 12:07:03 2017 +0100 oleaut32: Use VariantInit() rather than open coding it. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/oleaut32/vartype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c index ebb6183..2151fc9 100644 --- a/dlls/oleaut32/vartype.c +++ b/dlls/oleaut32/vartype.c @@ -129,7 +129,7 @@ static HRESULT VARIANT_FromDisp(IDispatch* pdispIn, LCID lcid, void* pOut, if (SUCCEEDED(hRet)) { /* Convert the property to the requested type */ - V_VT(&dstVar) = VT_EMPTY; + VariantInit(&dstVar); hRet = VariantChangeTypeEx(&dstVar, &srcVar, lcid, dwFlags, vt); VariantClear(&srcVar);
participants (1)
-
Alexandre Julliard