From f506ffc6d6fbf577cfaec32ee781d7fc932995d8 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 18 Apr 2017 12:07:03 +0100 Subject: [PATCH] oleaut32: Use VariantInit() rather than open coding it. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- 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 ebb6183e4ea..2151fc9d7fb 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);