From 1d421414b989f8ff2c0504e229392672f7402419 Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Thu, 24 May 2007 04:10:30 +0000 Subject: [PATCH] Added support for HKEY_CURRENT_USER to the registry access routines. --- .../library/winreg/winreg.cpp | 2 +- .../os/win32/x86/winreg.dll | Bin 17909 -> 17909 bytes 2 files changed, 1 insertion(+), 1 deletion(-) 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; diff --git a/core/org.eclipse.cdt.core.win32/os/win32/x86/winreg.dll b/core/org.eclipse.cdt.core.win32/os/win32/x86/winreg.dll index d80166ce1d9b690f949d4ff179462c97570716e4..451dc921d05bdbc7293d41fcba819d56d887b2c6 100644 GIT binary patch delta 81 zcmey`&G@yOaY6?Zo4~{_KPHo;jkm%%IJ#YVI$2a+Oqp!OnZ@{W@={JMfigA*hECTH j-L7vyG8b4UUu2VFQec~0#gVf)jcXn^(16WsV(;|TO4%3~ zI$b|>yT0jUQF(Emb@D|vDN%W#V7Kds&ejKi|Nrj>lP3>v=HvRt4K#8yo7j7O09xfJ AP5=M^