mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
fixed GetDiagnosticInformation() where under some instances a NullReferenceException occurs by a call to SecondarySharedThreadProvider.
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2016 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -128,10 +128,9 @@ namespace ProcessHacker
|
||||
//Exclude PH from WER after setting up exception handling otherwise PH will be permanatly queued in Vista/Win7 Problem Reports and Solutions
|
||||
//the data and infomation will be sent to Microsoft and is completely useles to us without a DigitalCertificate
|
||||
//Native.Api.Win32.AddERExcludedApplication(AppDomain.CurrentDomain.FriendlyName);
|
||||
// Native.Api.Win32.WerAddExcludedApplication(AppDomain.CurrentDomain.FriendlyName, false);
|
||||
//Native.Api.Win32.WerAddExcludedApplication(AppDomain.CurrentDomain.FriendlyName, false);
|
||||
//#endif
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
pArgs = ParseArgs(args);
|
||||
@@ -881,10 +880,12 @@ namespace ProcessHacker
|
||||
|
||||
info.AppendLine();
|
||||
info.AppendLine("PRIMARY SHARED THREAD PROVIDER");
|
||||
info.AppendLine("Count: " + SharedThreadProvider.Count.ToString());
|
||||
|
||||
|
||||
if (SharedThreadProvider != null)
|
||||
{
|
||||
info.AppendLine("Count: " + SharedThreadProvider.Count.ToString());
|
||||
|
||||
foreach (var provider in SharedThreadProvider.Providers)
|
||||
info.AppendLine(provider.GetType().FullName +
|
||||
" (Enabled: " + provider.Enabled +
|
||||
|
||||
Reference in New Issue
Block a user