enablekfw-part2-20040227

Current User should have priority over Local Machine
This commit is contained in:
Jeffrey Altman 2004-02-27 18:36:09 +00:00 committed by Jeffrey Altman
parent c9b834d6e7
commit 4d9e419c8c

View File

@ -466,10 +466,10 @@ KFW_is_available(void)
DWORD code, len;
DWORD enableKFW = 1;
code = RegOpenKeyEx(HKEY_LOCAL_MACHINE, OpenAFSConfigKeyName,
code = RegOpenKeyEx(HKEY_CURRENT_USER, OpenAFSConfigKeyName,
0, KEY_QUERY_VALUE, &parmKey);
if (code != ERROR_SUCCESS)
code = RegOpenKeyEx(HKEY_CURRENT_USER, OpenAFSConfigKeyName,
code = RegOpenKeyEx(HKEY_LOCAL_MACHINE, OpenAFSConfigKeyName,
0, KEY_QUERY_VALUE, &parmKey);
if (code == ERROR_SUCCESS) {
len = sizeof(enableKFW);