mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
enablekfw-part2-20040227
Current User should have priority over Local Machine
This commit is contained in:
parent
c9b834d6e7
commit
4d9e419c8c
@ -466,10 +466,10 @@ KFW_is_available(void)
|
|||||||
DWORD code, len;
|
DWORD code, len;
|
||||||
DWORD enableKFW = 1;
|
DWORD enableKFW = 1;
|
||||||
|
|
||||||
code = RegOpenKeyEx(HKEY_LOCAL_MACHINE, OpenAFSConfigKeyName,
|
code = RegOpenKeyEx(HKEY_CURRENT_USER, OpenAFSConfigKeyName,
|
||||||
0, KEY_QUERY_VALUE, &parmKey);
|
0, KEY_QUERY_VALUE, &parmKey);
|
||||||
if (code != ERROR_SUCCESS)
|
if (code != ERROR_SUCCESS)
|
||||||
code = RegOpenKeyEx(HKEY_CURRENT_USER, OpenAFSConfigKeyName,
|
code = RegOpenKeyEx(HKEY_LOCAL_MACHINE, OpenAFSConfigKeyName,
|
||||||
0, KEY_QUERY_VALUE, &parmKey);
|
0, KEY_QUERY_VALUE, &parmKey);
|
||||||
if (code == ERROR_SUCCESS) {
|
if (code == ERROR_SUCCESS) {
|
||||||
len = sizeof(enableKFW);
|
len = sizeof(enableKFW);
|
||||||
|
Loading…
Reference in New Issue
Block a user