From: Nikolay Sivov Subject: [PATCH 5/6] oleaut32: Remove unnecessary initialization of retval arg slot in Invoke(). Message-Id: <20210917111253.2489914-5-nsivov@codeweavers.com> Date: Fri, 17 Sep 2021 14:12:52 +0300 In-Reply-To: <20210917111253.2489914-1-nsivov@codeweavers.com> References: <20210917111253.2489914-1-nsivov@codeweavers.com> Whole argument buffer is already zero-initialized. Signed-off-by: Nikolay Sivov --- dlls/oleaut32/typelib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index fb49cd303fe..5c5aca63538 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -7361,7 +7361,6 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( { VARIANTARG *arg; arg = prgpvarg[i] = &rgvarg[i]; - memset(arg, 0, sizeof(*arg)); V_VT(arg) = rgvt[i]; memset(&retval, 0, sizeof(retval)); V_BYREF(arg) = &retval; -- 2.33.0