Set type of destination variant in VariantChangeTypeEx function.

This commit is contained in:
Stephane Lussier 1999-03-19 16:44:32 +00:00 committed by Alexandre Julliard
parent ff2b369739
commit 7451774496

View file

@ -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;
}