Nikolay Sivov : oleaut32: Do not use static variable for disp params.
Alexandre Julliard
julliard at winehq.org
Tue Sep 14 16:00:13 CDT 2021
Module: wine
Branch: master
Commit: 2651677d4923f3a918f54777839cd3b79f0081d0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2651677d4923f3a918f54777839cd3b79f0081d0
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Sep 14 20:12:13 2021 +0300
oleaut32: Do not use static variable for disp params.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/oleaut32/variant.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c
index bd1ff17c707..010b1143172 100644
--- a/dlls/oleaut32/variant.c
+++ b/dlls/oleaut32/variant.c
@@ -506,13 +506,13 @@ static inline HRESULT VARIANT_CoerceArray(VARIANTARG* pd, VARIANTARG* ps, VARTYP
static HRESULT VARIANT_FetchDispatchValue(LPVARIANT pvDispatch, LPVARIANT pValue)
{
+ DISPPARAMS params = { 0 };
HRESULT hres;
- static DISPPARAMS emptyParams = { NULL, NULL, 0, 0 };
if ((V_VT(pvDispatch) & VT_TYPEMASK) == VT_DISPATCH) {
if (NULL == V_DISPATCH(pvDispatch)) return DISP_E_TYPEMISMATCH;
hres = IDispatch_Invoke(V_DISPATCH(pvDispatch), DISPID_VALUE, &IID_NULL,
- LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET, &emptyParams, pValue,
+ LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET, ¶ms, pValue,
NULL, NULL);
} else {
hres = DISP_E_TYPEMISMATCH;
More information about the wine-cvs
mailing list