http://bugs.winehq.org/show_bug.cgi?id=58140
--- Comment #9 from Heiko Rabe heiko.rabe+winehq@peopleware.com --- - 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.