From 26fc021eb4a0f9b37d00016de9f4b0cfade75aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Thu, 13 Oct 2022 15:52:41 +0800 Subject: [PATCH] 1.0.0 --- WindivertDotnet/WindivertDotnet.csproj | 2 +- WindivertDotnet/WindivertSendOperation.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/WindivertDotnet/WindivertDotnet.csproj b/WindivertDotnet/WindivertDotnet.csproj index a18acf1..22894ec 100644 --- a/WindivertDotnet/WindivertDotnet.csproj +++ b/WindivertDotnet/WindivertDotnet.csproj @@ -1,7 +1,7 @@  - 1.0.0-rc3 + 1.0.0 netstandard2.1 enable 9.0 diff --git a/WindivertDotnet/WindivertSendOperation.cs b/WindivertDotnet/WindivertSendOperation.cs index ac79e09..11f133a 100644 --- a/WindivertDotnet/WindivertSendOperation.cs +++ b/WindivertDotnet/WindivertSendOperation.cs @@ -20,7 +20,6 @@ public WindivertSendOperation( protected override bool IOControl(int* pLength, NativeOverlapped* nativeOverlapped) { - var addrLength = WinDivertAddress.Size; return WinDivertNative.WinDivertSendEx( this.divert, this.packet, @@ -28,7 +27,7 @@ protected override bool IOControl(int* pLength, NativeOverlapped* nativeOverlapp pLength, 0UL, this.addr, - addrLength, + WinDivertAddress.Size, nativeOverlapped); } }