Module: wine Branch: master Commit: 93a4fd5887a348ee9d6a887bad6247a27ddadfd6 URL: https://source.winehq.org/git/wine.git/?a=commit;h=93a4fd5887a348ee9d6a887ba...
Author: Nikolay Sivov nsivov@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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;