Skip to content

Commit

Permalink
Move descrs into fixed scope
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Mar 12, 2024
1 parent b6cba46 commit 0596501
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,13 @@ private unsafe void WriteEvent(int eventId, byte arg1, byte arg2, long arg3, str
arg5 ??= "";
arg7 ??= "";

const int NumEventDatas = 7;
EventData* descrs = stackalloc EventData[NumEventDatas];

fixed (char* arg4Ptr = arg4)
fixed (char* arg5Ptr = arg5)
fixed (char* arg7Ptr = arg7)
{
const int NumEventDatas = 7;
EventData* descrs = stackalloc EventData[NumEventDatas];

descrs[0] = new EventData
{
DataPointer = (IntPtr)(&arg1),
Expand Down

0 comments on commit 0596501

Please sign in to comment.