http://bugs.winehq.org/show_bug.cgi?id=58140
--- Comment #10 from Hans Leidekker hans@meelstraat.net --- (In reply to Heiko Rabe from comment #9)
- static const WCHAR sourcesW[] = L"Software\ODBC\ODBC.INI";
- static const WCHAR sourcesW[] = L"Software\ODBC\ODBC.INI\ODBC Data
Sources";
In my opinion the problem arised from lookup for the driver at the wrong key.
[HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\test] "Driver"="PostgreSQL Unicode"
[HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ODBC Data Sources]
The DSN is test and the driver can only be found at ODBC.INI\test and not at ODBC.INI\ODBC Data Sources\test
This is what I read from the code changes made.
There should be a 'test' value under both keys. They should be created automatically from the values in /etc/odbc.ini (or ~/.odbc.ini). Can you remove the ODBC key and attach a WINEDEBUG=+odbc,+reg trace from running your app?