[v2 PATCH] oleaut32: Remove redentant VariantClear call

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Tue Apr 18 04:18:38 CDT 2017


v2. Removed VariantClear call
    Was "oleaut32: Pass the correct variable to VariantClear"

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/oleaut32/vartype.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index fc5a0259c1..ebb6183e4e 100644
--- a/dlls/oleaut32/vartype.c
+++ b/dlls/oleaut32/vartype.c
@@ -134,10 +134,7 @@ static HRESULT VARIANT_FromDisp(IDispatch* pdispIn, LCID lcid, void* pOut,
     VariantClear(&srcVar);
 
     if (SUCCEEDED(hRet))
-    {
       VARIANT_CopyData(&dstVar, vt, pOut);
-      VariantClear(&srcVar);
-    }
   }
   else
     hRet = DISP_E_TYPEMISMATCH;
-- 
2.11.0




More information about the wine-patches mailing list