Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f5a854b

Browse files
authored
Merge pull request #5882 from stephentoub/fix_ev_bytearray
Fix EventSource deserializing of byte[]s
2 parents ee68078 + 4a3ab68 commit f5a854b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mscorlib/src/System/Diagnostics/Eventing/EventSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ private unsafe object DecodeObject(int eventId, int parameterId, ref EventSource
18361836
dataPointer = data->DataPointer;
18371837
data++;
18381838
for (int i = 0; i < cbSize; ++i)
1839-
blob[i] = *((byte*)dataPointer);
1839+
blob[i] = *((byte*)(dataPointer + i));
18401840
return blob;
18411841
}
18421842
else if (dataType == typeof(byte*))

0 commit comments

Comments
 (0)