mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Added support for HKEY_CURRENT_USER to the registry access routines.
This commit is contained in:
parent
4082f4efa8
commit
1d421414b9
2 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue