From e7fbdd1eb2f7e60e3ce3829c8468e39fdcb2ac3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 25 Jan 2023 01:02:15 +0100 Subject: [PATCH] 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); }