Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Fix WinDivertHelperCheckFilter errorPosition #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WinDivertSharp/WinDivert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public static bool WinDivertHelperCheckFilter(string filter, WinDivertLayer laye
char* pErrorString = null;

uint errPosTmp = 0;
var retVal = WinDivertNative.WinDivertHelperCheckFilter(filter, layer, &pErrorString, ref errorPosition);
var retVal = WinDivertNative.WinDivertHelperCheckFilter(filter, layer, &pErrorString, ref errPosTmp);
if (pErrorString != null)
{
errorMessage = Marshal.PtrToStringAnsi((IntPtr)pErrorString);
Expand Down Expand Up @@ -661,4 +661,4 @@ public static bool WinDivertHelperEvalFilter(string filter, WinDivertLayer layer
}
}
}
}
}