From 6c6ce70260c0b3fd2ad5c61a318c1a2ccae8c102 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 3 May 2006 22:22:27 +0100 Subject: [PATCH] oleaut32: Check the return value from VariantCopy when copying values for VT_VARIANT typed parameters for ITypeInfo::Invoke. --- dlls/oleaut32/typelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 9902cf9f3d2..0eb48b40b71 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5239,7 +5239,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( dump_Variant(src_arg); if (rgvt[i] == VT_VARIANT) - VariantCopy(&rgvarg[i], src_arg); + hres = VariantCopy(&rgvarg[i], src_arg); else if (rgvt[i] == (VT_VARIANT | VT_BYREF)) { if (rgvt[i] == V_VT(src_arg))