oledb32: Fix error info cleanup dispparams rgvarg index.

This commit is contained in:
Rémi Bernon 2023-01-25 01:02:15 +01:00 committed by Alexandre Julliard
parent 369e0cfae6
commit e7fbdd1eb2

View file

@ -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);
}