]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: AFS_Startup_Event must query Debug value
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 19 Jun 2012 01:55:49 +0000 (21:55 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Tue, 3 Jul 2012 15:08:41 +0000 (08:08 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/afslogon.c

index 0138c62ce35a8a02bed9590ff247257c3a700897..147fb34d3acc0a6099586c2b1266810cfd674f07 100644 (file)
@@ -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");
 }