Hans Leidekker (@hans) commented about dlls/odbccp32/tests/misc.c:
reg_ret = RegDeleteKeyW(HKEY_LOCAL_MACHINE, L"Software\\ODBC\\ODBC.INI\\wineodbc"); ok(reg_ret == ERROR_SUCCESS, "RegDeleteKeyW failed %ld\n", reg_ret);
- /* Show existing MACHINE DSN is checked before USER */
- ret = SQLWritePrivateProfileStringW(L"wineodbc1", L"testing" , L"value1", L"ODBC.INI");
- ok(ret, "SQLWritePrivateProfileString failed\n");
To test this properly you also need to write a different value with ODBC_USER_DSN set.