From: Jeffrey Altman Date: Tue, 19 Jun 2012 01:55:49 +0000 (-0400) Subject: Windows: AFS_Startup_Event must query Debug value X-Git-Tag: upstream/1.6.2_pre2^2~47 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2b92fe44b837a807ca685a4c1c9047dc37948030;p=packages%2Fo%2Fopenafs.git 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. Reviewed-on: http://gerrit.openafs.org/7633 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from commit 7fd1dc6c887c3bf786632901bc72b8250298a98f) Change-Id: I0a58b45890a505ba9ddab24582deaf0c70571a66 Reviewed-on: http://gerrit.openafs.org/8633 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 8f2d72389..d3553e9ce 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -1269,6 +1269,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"); }