16 Aug
2024
16 Aug
'24
9:36 a.m.
Hans Leidekker (@hans) commented about dlls/odbccp32/tests/misc.c:
WCHAR buffer[256] = {0}; LONG reg_ret;
+ /* Get Driver Information - Currently under wine we dont have any default drivers. */ + ret = SQLGetPrivateProfileStringW(L"SQL Server", L"SQLlevel" , L"99", buffer, 256, L"ODBCINST.INI"); + todo_wine ok(ret == 1, "SQLGetPrivateProfileStringW returned %d\n", ret); + todo_wine ok(!lstrcmpW(buffer, L"1"), "incorrect string '%s'\n", wine_dbgstr_w(buffer));
You can set driver information and then query it. You should also make sure this is using the ODBC_USER_DSN config mode. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6295#note_78943