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); } }