From 56a18a55f313b759e6f0be5f28bb4221b57b5f17 Mon Sep 17 00:00:00 2001 From: Trivalik <3148279+trivalik@users.noreply.github.com> Date: Sun, 3 Nov 2024 14:12:45 +0100 Subject: [PATCH] remove never used comment (#540) By fixing errbuf returning something, it was missed on several rewrites that the comment was still inside. --- SharpPcap/LibPcap/LibPcapSafeNativeMethods.Encoding.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/SharpPcap/LibPcap/LibPcapSafeNativeMethods.Encoding.cs b/SharpPcap/LibPcap/LibPcapSafeNativeMethods.Encoding.cs index 18fa7805..b1a41ee9 100644 --- a/SharpPcap/LibPcap/LibPcapSafeNativeMethods.Encoding.cs +++ b/SharpPcap/LibPcap/LibPcapSafeNativeMethods.Encoding.cs @@ -91,8 +91,6 @@ public IntPtr MarshalManagedToNative(object managedObj) } var str = (string)managedObj; var bytes = StringEncoding.GetBytes(str); - // The problem is that we need a reference to the StringBuilder in MarshalNativeToManaged - // So we get a pointer to it with GCHandle, and put it as prefix of the pointer we return var ptr = Marshal.AllocHGlobal(bytes.Length + 1); Marshal.Copy(bytes, 0, ptr, bytes.Length); // Put zero string termination