May 9, 2026
5:13 a.m.
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> --- dlls/odbccp32/odbccp32.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/odbccp32/odbccp32.c b/dlls/odbccp32/odbccp32.c index f42a9e22c65..c6e4834f9ef 100644 --- a/dlls/odbccp32/odbccp32.c +++ b/dlls/odbccp32/odbccp32.c @@ -1798,8 +1798,6 @@ BOOL WINAPI SQLWriteDSNToIniW(LPCWSTR lpszDSN, LPCWSTR lpszDriver) filename[0] = 0; if (RegOpenKeyW(HKEY_LOCAL_MACHINE, L"Software\\ODBC\\ODBCINST.INI\\", &hkey) == ERROR_SUCCESS) { - HKEY hkeydriver; - if (RegOpenKeyW(hkey, lpszDriver, &hkeydriver) == ERROR_SUCCESS) { DWORD size = MAX_PATH * sizeof(WCHAR); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10849