Hans Leidekker (@hans) commented about dlls/odbccp32/odbccp32.c:
clear_errors();
- if (RegOpenKeyW(HKEY_LOCAL_MACHINE, L"Software\ODBC\ODBC.INI\ODBC Data Sources", &hkey) == ERROR_SUCCESS)
- if (config_mode == ODBC_USER_DSN)
hkeyroot = HKEY_CURRENT_USER;
What about ODBC_BOTH_DSN? This could also use some tests.