diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs index abc56be55f..a7f3667a33 100644 --- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs +++ b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs @@ -644,7 +644,7 @@ namespace System.Diagnostics.Tracing if (filterData->Ptr != 0 && 0 < filterData->Size && filterData->Size <= 100*1024) { data = new byte[filterData->Size]; - Marshal.Copy((IntPtr)filterData->Ptr, data, 0, data.Length); + Marshal.Copy((IntPtr)(void*)filterData->Ptr, data, 0, data.Length); } command = (ControllerCommand)filterData->Type; return true; |