From 7fd1dc6c887c3bf786632901bc72b8250298a98f Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 18 Jun 2012 21:55:49 -0400 Subject: [PATCH] Windows: AFS_Startup_Event must query Debug value For proper debugging to be performed within the AFS_Startup_Event processing, the "Debug" value must be queried from the registry. Change-Id: I3b9fa48029f45022c9c5c00cadd64d0822878046 Reviewed-on: http://gerrit.openafs.org/7633 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/afslogon.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 0138c62ce3..147fb34d3a 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -1284,6 +1284,14 @@ VOID AFS_Startup_Event( PWLX_NOTIFICATION_INFO pInfo ) RegQueryValueEx(NPKey, REG_CLIENT_TRACE_OPTION_PARM, NULL, &LSPtype, (LPBYTE)&TraceOption, &LSPsize); + RegCloseKey (NPKey); + + (void) RegOpenKeyEx(HKEY_LOCAL_MACHINE, AFSREG_CLT_SVC_PROVIDER_SUBKEY, + 0, KEY_QUERY_VALUE, &NPKey); + LSPsize=sizeof(Debug); + RegQueryValueEx(NPKey, REG_CLIENT_DEBUG_PARM, NULL, + &LSPtype, (LPBYTE)&Debug, &LSPsize); + RegCloseKey (NPKey); DebugEvent0("AFS_Startup_Event"); }