Huw Davies : oleaut32: Use VariantInit() rather than open coding it.

Alexandre Julliard julliard at winehq.org
Wed Apr 19 14:49:38 CDT 2017


Module: wine
Branch: master
Commit: f506ffc6d6fbf577cfaec32ee781d7fc932995d8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f506ffc6d6fbf577cfaec32ee781d7fc932995d8

Author: Huw Davies <huw at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
 




More information about the wine-cvs mailing list