From: Hans Leidekker hans@codeweavers.com
--- dlls/odbc32/proxyodbc.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c index 7388cfb3d9c..58405c94d60 100644 --- a/dlls/odbc32/proxyodbc.c +++ b/dlls/odbc32/proxyodbc.c @@ -3009,7 +3009,11 @@ SQLRETURN WINAPI SQLGetStmtAttr(SQLHSTMT StatementHandle, SQLINTEGER Attribute, ERR( "truncating descriptor handle, consider using a Windows driver\n" ); desc->hdr.unix_handle = (ULONG_PTR)*(SQLHDESC *)Value; } - else if (stmt->hdr.win32_handle) desc->hdr.win32_handle = *(SQLHDESC *)Value; + else if (stmt->hdr.win32_handle) + { + desc->hdr.win32_handle = *(SQLHDESC *)Value; + desc->hdr.win32_funcs = stmt->hdr.win32_funcs; + } *(struct descriptor **)Value = desc; break; } @@ -6428,7 +6432,11 @@ SQLRETURN WINAPI SQLGetStmtAttrW(SQLHSTMT StatementHandle, SQLINTEGER Attribute, ERR( "truncating descriptor handle, consider using a Windows driver\n" ); desc->hdr.unix_handle = (ULONG_PTR)*(SQLHDESC *)Value; } - else if (stmt->hdr.win32_handle) desc->hdr.win32_handle = *(SQLHDESC *)Value; + else if (stmt->hdr.win32_handle) + { + desc->hdr.win32_handle = *(SQLHDESC *)Value; + desc->hdr.win32_funcs = stmt->hdr.win32_funcs; + } *(struct descriptor **)Value = desc; break; }