You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Corrected Commit ascii to ANSI. Reset patch numbers. Convert SQL_C_WCHAR to SQL_CHAR when required for ANSI driver.
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From 987b50c3a705029e222f444caa453729483eac67 Mon Sep 17 00:00:00 2001
|
|
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
|
Date: Fri, 12 Jul 2024 14:55:47 +1000
|
|
Subject: [PATCH] odbc32: SQLSetConnectAttr/W handle fallback function
|
|
|
|
---
|
|
dlls/odbc32/proxyodbc.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
|
|
index aa886d01e33..4fdd242f3b5 100644
|
|
--- a/dlls/odbc32/proxyodbc.c
|
|
+++ b/dlls/odbc32/proxyodbc.c
|
|
@@ -6713,6 +6713,11 @@ static SQLRETURN set_connect_attr_win32_w( struct connection *con, SQLINTEGER at
|
|
if (con->hdr.win32_funcs->SQLSetConnectAttrW)
|
|
return con->hdr.win32_funcs->SQLSetConnectAttrW( con->hdr.win32_handle, attr, value, len );
|
|
if (con->hdr.win32_funcs->SQLSetConnectAttr) FIXME( "Unicode to ANSI conversion not handled\n" );
|
|
+ else if(con->hdr.win32_funcs->SQLSetConnectOptionW)
|
|
+ {
|
|
+ /* ODBC v2 */
|
|
+ return con->hdr.win32_funcs->SQLSetConnectOptionW( con->hdr.win32_handle, attr, (SQLULEN)value );
|
|
+ }
|
|
return SQL_ERROR;
|
|
}
|
|
|
|
--
|
|
2.47.2
|
|
|