Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp')
-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