Nikolay Sivov : oleaut32: Remove unnecessary initialization of retval arg slot in Invoke().
Alexandre Julliard
julliard at winehq.org
Fri Sep 17 16:03:09 CDT 2021
Module: wine
Branch: master
Commit: 93a4fd5887a348ee9d6a887bad6247a27ddadfd6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=93a4fd5887a348ee9d6a887bad6247a27ddadfd6
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Sep 17 14:12:52 2021 +0300
oleaut32: Remove unnecessary initialization of retval arg slot in Invoke().
Whole argument buffer is already zero-initialized.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list