[PATCH 5/6] oleaut32: Remove unnecessary initialization of retval arg slot in Invoke().
Nikolay Sivov
nsivov at codeweavers.com
Fri Sep 17 06:12:52 CDT 2021
Whole argument buffer is already zero-initialized.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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
More information about the wine-devel
mailing list