Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2007-05-24 04:10:30 +0000
committerDoug Schaefer2007-05-24 04:10:30 +0000
commit1d421414b989f8ff2c0504e229392672f7402419 (patch)
treec810bc4c8dc6440a90d28db21f55330b1e2a0e76 /core/org.eclipse.cdt.core.win32/library
parent4082f4efa89e412ae5a4b4ae79abd1ba71f64702 (diff)
downloadorg.eclipse.cdt-1d421414b989f8ff2c0504e229392672f7402419.tar.gz
org.eclipse.cdt-1d421414b989f8ff2c0504e229392672f7402419.tar.xz
org.eclipse.cdt-1d421414b989f8ff2c0504e229392672f7402419.zip
Added support for HKEY_CURRENT_USER to the registry access routines.
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/library')
-rw-r--r--core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp b/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp
index e5c284d9437..50818020978 100644
--- a/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp
+++ b/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp
@@ -112,7 +112,7 @@ static jstring getKeyName(JNIEnv * env, HKEY key, jstring subkey, jint index) {
jstring result = NULL;
HKEY skey;
- LONG rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE, (const wchar_t *)csubkey, 0, KEY_READ, &skey);
+ LONG rc = RegOpenKeyEx(key, (const wchar_t *)csubkey, 0, KEY_READ, &skey);
if (rc != ERROR_SUCCESS)
return NULL;

Back to the top