From: Piotr Caban <piotr(a)codeweavers.com> --- dlls/msado15/recordset.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msado15/recordset.c b/dlls/msado15/recordset.c index 10e2eb47740..837d0e3625f 100644 --- a/dlls/msado15/recordset.c +++ b/dlls/msado15/recordset.c @@ -1088,6 +1088,8 @@ static HRESULT WINAPI fields__Append( Fields *iface, BSTR name, DataTypeEnum typ TRACE( "%p, %s, %u, %Id, %d\n", fields, debugstr_w(name), type, size, attr ); + if (fields_get_recordset(fields)->state != adStateClosed) return MAKE_ADO_HRESULT( adErrIllegalOperation ); + memset( &colinfo, 0, sizeof(colinfo) ); colinfo.pwszName = name; colinfo.wType = type; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9358