Skip to content

Commit

Permalink
Merge pull request #11 from kirbyUK/main
Browse files Browse the repository at this point in the history
Zero out event trace properties
  • Loading branch information
stevemk14ebr authored Jan 12, 2023
2 parents 938e184 + 97b2d58 commit baa2e8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions C/STrace/Etw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ PEVENT_TRACE_PROPERTIES_V2 AllocEventProperties()
return NULL;
}

memset(eventProperties, 0, eventPropertiesSize);
eventProperties->Wnode.BufferSize = 0xB0;
eventProperties->Wnode.Flags = WNODE_FLAG_TRACED_GUID;
eventProperties->Wnode.Guid = ETW_SESSION_GUID;
Expand Down

0 comments on commit baa2e8a

Please sign in to comment.