[PATCH 1/2] odbccp32: Look in LOCAL_MACHINE for the driver

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Apr 9 23:00:16 CDT 2017


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/odbccp32/odbccp32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/odbccp32/odbccp32.c b/dlls/odbccp32/odbccp32.c
index 666d8c0..f28d464 100644
--- a/dlls/odbccp32/odbccp32.c
+++ b/dlls/odbccp32/odbccp32.c
@@ -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;
 
-- 
1.9.1




More information about the wine-patches mailing list