From: Piotr Caban <piotr@codeweavers.com> --- dlls/odbc32/proxyodbc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c index 066e9c14064..90396b7a725 100644 --- a/dlls/odbc32/proxyodbc.c +++ b/dlls/odbc32/proxyodbc.c @@ -4453,6 +4453,13 @@ static SQLRETURN transact_win32( struct environment *env, struct connection *con if (win32_funcs->SQLTransact) return win32_funcs->SQLTransact( env ? env->hdr.win32_handle : NULL, con ? con->hdr.win32_handle : NULL, completion ); + + if (win32_funcs->SQLEndTran) + { + if (con) return win32_funcs->SQLEndTran( SQL_HANDLE_DBC, con->hdr.win32_handle, completion ); + return win32_funcs->SQLEndTran( SQL_HANDLE_ENV, env->hdr.win32_handle, completion ); + } + return SQL_ERROR; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10566