Alistair Leslie-Hughes : odbccp32: Look in LOCAL_MACHINE for the driver.

Alexandre Julliard julliard at winehq.org
Tue Apr 11 15:31:02 CDT 2017


Module: wine
Branch: master
Commit: 3b5a8707e6c1c8ea94df59372aac7bc34c47925d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3b5a8707e6c1c8ea94df59372aac7bc34c47925d

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Apr 10 04:30:36 2017 +0000

odbccp32: Look in LOCAL_MACHINE for the driver.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 




More information about the wine-cvs mailing list