From 7451774496aaf2be2d08ba3c791e6b7fcf8dfdfe Mon Sep 17 00:00:00 2001 From: Stephane Lussier <stephane@macadamian.com> Date: Fri, 19 Mar 1999 16:44:32 +0000 Subject: [PATCH] Set type of destination variant in VariantChangeTypeEx function. --- ole/variant.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ole/variant.c b/ole/variant.c index 5490d2285f7..ad63734265e 100644 --- a/ole/variant.c +++ b/ole/variant.c @@ -1986,6 +1986,11 @@ HRESULT WINAPI VariantChangeTypeEx(VARIANTARG* pvargDest, VARIANTARG* pvargSrc, */ VariantClear( &varg ); + /* set the type of the destination + */ + if ( res == S_OK ) + pvargDest->vt = vt; + return res; } -- GitLab