Hans Leidekker (@hans) commented about dlls/odbccp32/odbccp32.c:
if (!defvalue || !buff) return 0;
- if (config_mode == ODBC_USER_DSN)
- /* odbcinit.ini is only for drivers, so default to local Machine */
- if (!wcsicmp(filename, L"ODBCINST.INI"))
sectionkey = get_privateprofile_sectionkey(HKEY_LOCAL_MACHINE, section, filename);
- else if (config_mode == ODBC_USER_DSN) sectionkey = get_privateprofile_sectionkey(HKEY_CURRENT_USER, section, filename); else if (config_mode == ODBC_SYSTEM_DSN) sectionkey = get_privateprofile_sectionkey(HKEY_LOCAL_MACHINE, section, filename);
Can you add a test please? While you're at it, please merge the ODBCINST.INI and ODBC_SYSTEM_DSN cases.