odbccp32: Look in LOCAL_MACHINE for the driver.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2017-04-10 04:30:36 +00:00 committed by Alexandre Julliard
parent 6926564677
commit 3b5a8707e6

View file

@ -260,7 +260,7 @@ static HMODULE load_config_driver(const WCHAR *driver)
DWORD size = 0, type;
HKEY hkey;
if ((ret = RegOpenKeyW(HKEY_CURRENT_USER, odbcini, &hkey)) == ERROR_SUCCESS)
if ((ret = RegOpenKeyW(HKEY_LOCAL_MACHINE, odbcini, &hkey)) == ERROR_SUCCESS)
{
HKEY hkeydriver;