Skip to content

Commit 56a18a5

Browse files
authored
remove never used comment (#540)
By fixing errbuf returning something, it was missed on several rewrites that the comment was still inside.
1 parent d719097 commit 56a18a5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: SharpPcap/LibPcap/LibPcapSafeNativeMethods.Encoding.cs

-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ public IntPtr MarshalManagedToNative(object managedObj)
9191
}
9292
var str = (string)managedObj;
9393
var bytes = StringEncoding.GetBytes(str);
94-
// The problem is that we need a reference to the StringBuilder in MarshalNativeToManaged
95-
// So we get a pointer to it with GCHandle, and put it as prefix of the pointer we return
9694
var ptr = Marshal.AllocHGlobal(bytes.Length + 1);
9795
Marshal.Copy(bytes, 0, ptr, bytes.Length);
9896
// Put zero string termination

0 commit comments

Comments
 (0)