Rémi Bernon : oledb32: Fix error info cleanup dispparams rgvarg index.
Module: wine Branch: master Commit: e7fbdd1eb2f7e60e3ce3829c8468e39fdcb2ac3a URL: https://gitlab.winehq.org/wine/wine/-/commit/e7fbdd1eb2f7e60e3ce3829c8468e39... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Wed Jan 25 01:02:15 2023 +0100 oledb32: Fix error info cleanup dispparams rgvarg index. --- dlls/oledb32/errorinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oledb32/errorinfo.c b/dlls/oledb32/errorinfo.c index b6e0d10e8e0..6857caeb368 100644 --- a/dlls/oledb32/errorinfo.c +++ b/dlls/oledb32/errorinfo.c @@ -120,7 +120,7 @@ static ULONG WINAPI errorrecords_Release(IErrorInfo* iface) IUnknown_Release(This->records[i].custom_error); for (j = 0; j < dispparams->cArgs && dispparams->rgvarg; j++) - VariantClear(&dispparams->rgvarg[i]); + VariantClear(&dispparams->rgvarg[j]); CoTaskMemFree(dispparams->rgvarg); CoTaskMemFree(dispparams->rgdispidNamedArgs); }
participants (1)
-
Alexandre Julliard