Skip to content

Commit

Permalink
Fixed task category terminator when name was not resolved from modern…
Browse files Browse the repository at this point in the history
… event record
  • Loading branch information
jschick04 authored and bill-long committed Jul 25, 2024
1 parent 2f84914 commit 3136c42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected DisplayEventModel ResolveFromProviderDetails(

if (potentialTaskNames is { Count: > 0 })
{
taskName = potentialTaskNames[0].Text.TrimEnd('\0');
taskName = potentialTaskNames[0].Text;

if (potentialTaskNames.Count > 1)
{
Expand All @@ -276,7 +276,7 @@ protected DisplayEventModel ResolveFromProviderDetails(
eventRecord.MachineName,
Severity.GetString(eventRecord.Level),
eventRecord.ProviderName,
taskName ?? string.Empty,
taskName?.TrimEnd('\0') ?? string.Empty,
description,
eventRecord.Qualifiers,
GetKeywordsFromBitmask(eventRecord.Keywords, providerDetails),
Expand Down

0 comments on commit 3136c42

Please sign in to comment.