Skip to content

Commit

Permalink
Update EventSource.xml
Browse files Browse the repository at this point in the history
Clamp fileTime to > Jan 1st, 1601
  • Loading branch information
msnilsen authored Sep 1, 2023
1 parent 16cdc53 commit b8142a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml/System.Diagnostics.Tracing/EventSource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3820,7 +3820,7 @@ desc.DataPointer = (IntPtr)(&arg);
desc.Size = UIntPtr.Size;
// DateTime arg
long fileTime = arg.ToFileTimeUtc();
long fileTime = arg.Ticks > 504_911_232_000_000_000 ? arg.ToFileTimeUtc() : 0;
desc.DataPointer = (IntPtr)(&fileTime);
desc.Size = 8;
Expand Down

0 comments on commit b8142a3

Please sign in to comment.