http://bugs.winehq.org/show_bug.cgi?id=59799 --- Comment #3 from Arthur Talpaert <arthur.talpaert_winehq@m4x.org> --- (In reply to Hans Leidekker from comment #2)
Created attachment 81041 [details] patch
Can you try this patch?
Thanks for the fast turnaround, Hans — and for the clear explanation of why the attributes can't be forwarded immediately at SQLSetConnectAttr time. For end-to-end validation against the original reproducer, the GMC PaDok client installer is publicly downloadable (no login) from the vendor's customer page: https://www.gmc-systems.de/index.php/service/kundenbereich-gmc-padok/index.h... Grab "Installation GMC PaDok Client" (setup_gmcpadok_5050.exe, ~430 MB). The path that hits the bug is: launch the installer, advance to the SQL Server Verbindungsaufbau screen, tick Manuelle Eingabe, enter the host:port of any SQL Server with a default self-signed cert (e.g. <host>,1433), pick ODBC Driver 17 for SQL Server in the dropdown, Weiter. On stock Wine 10 the call fails at attribute 1224 (SQL_COPT_SS_TRUST_SERVER_CERTIFICATE); PaDok surfaces "Konfigurationsdatenbank nicht erreichbar". If you'd rather have a minimal C reproducer that doesn't pull in the whole PaDok stack: SQLHENV env; SQLAllocHandle(SQL_HANDLE_ENV, NULL, &env); SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION, (void*)SQL_OV_ODBC3, 0); SQLHDBC dbc; SQLAllocHandle(SQL_HANDLE_DBC, env, &dbc); SQLSetConnectAttr(dbc, SQL_ATTR_LOGIN_TIMEOUT, (SQLPOINTER)15, 0); SQLSetConnectAttr(dbc, SQL_ATTR_CONNECTION_TIMEOUT, (SQLPOINTER)30, 0); SQLSetConnectAttr(dbc, SQL_COPT_SS_TRUST_SERVER_CERTIFICATE, (SQLPOINTER)1, 0); SQLDriverConnect(dbc, NULL, (SQLCHAR*)"Driver={ODBC Driver 17 for SQL Server};Server=<host>;Database=master;Uid=<user>;Pwd=<pwd>;", SQL_NTS, NULL, 0, NULL, SQL_DRIVER_NOPROMPT); Same code path as PaDok; the third SQLSetConnectAttr is where the fixme fires on stock Wine 10. Testing 1224 alone is sufficient to validate the storage-and-replay logic — the other SS attributes in the same range (1219 / 1226 / 1227) follow identical semantics. I'm not currently set up to build Wine from source, so I can't validate the patch directly on my end. I'll watch this bug and pick up the fix once it lands in a Sikarugir release. Thanks again! -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.