1
0
Fork 0
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:
Doug Schaefer 2007-05-24 04:10:30 +00:00
parent 4082f4efa8
commit 1d421414b9
2 changed files with 1 additions and 1 deletions

View file

@ -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;