From 18d0502f7b9de783fd5eb0dcd5aca2ef27143ee3 Mon Sep 17 00:00:00 2001
From: Roman Dadkov <romand@etersoft.ru>
Date: Mon, 27 Aug 2012 17:24:24 +0400
Subject: [PATCH] oleaut32: Converting by place no restrictions on the
 referential integrity.

---
 dlls/oleaut32/variant.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c
index 8a77593..e981edf 100644
--- a/dlls/oleaut32/variant.c
+++ b/dlls/oleaut32/variant.c
@@ -1043,6 +1043,8 @@ HRESULT WINAPI VariantChangeTypeEx(VARIANTARG* pvargDest, VARIANTARG* pvargSrc,
           {
             if (V_ISARRAY(&vSrcDeref) || (vt & VT_ARRAY))
               res = VARIANT_CoerceArray(&vTmp, &vSrcDeref, vt);
+            else if(pvargDest == pvargSrc)
+              res = VariantCopy(&vTmp, &vSrcDeref);
             else
               res = VARIANT_Coerce(&vTmp, lcid, wFlags, &vSrcDeref, vt);
 
-- 
1.7.10.5
