diff --git a/VpSharp.Tests/src/MarshellerTests.cs b/VpSharp.Tests/src/MarshellerTests.cs index 6020537..97d0e8b 100644 --- a/VpSharp.Tests/src/MarshellerTests.cs +++ b/VpSharp.Tests/src/MarshellerTests.cs @@ -70,6 +70,6 @@ public class MarshellerTests var marshaller = new Utf8StringToNative(); nint buffer = marshaller.MarshalManagedToNative(input); byteCount = Encoding.UTF8.GetByteCount(input); - return (byte*)buffer.ToPointer(); + return (byte*)buffer; } }