]> 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>
Fri, 7 Dec 2012 00:41:24 +0000 (16:41 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 7fd1dc6c887c3bf786632901bc72b8250298a98f)

Change-Id: I0a58b45890a505ba9ddab24582deaf0c70571a66
Reviewed-on: http://gerrit.openafs.org/8633
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/afslogon.c

index 8f2d72389f3d11ad07463d048c8d05fc85bcfdab..d3553e9ceb6691c3c9338a786f4157ab2919e308 100644 (file)
@@ -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");
 }