From 217915b8d21d97372eb6265057ed5e321869bb5c Mon Sep 17 00:00:00 2001 From: Trivalik <3148279+trivalik@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:19:08 +0100 Subject: [PATCH] remove never used comment 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