From 0c773bc08fb833e20875db4ddf4790999b5fe1ed Mon Sep 17 00:00:00 2001 From: basil00 Date: Sun, 29 Sep 2019 07:27:04 +0800 Subject: [PATCH] Fix batch parsing bug. --- dll/windivert_helper.c | 3 ++- sys/windivert.vcxproj | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dll/windivert_helper.c b/dll/windivert_helper.c index 537602b..869c7d5 100644 --- a/dll/windivert_helper.c +++ b/dll/windivert_helper.c @@ -522,7 +522,8 @@ BOOL WinDivertHelperParsePacket(const VOID *pPacket, UINT packetLen, } if (ppNext != NULL) { - *ppNext = (info.Extended? (PVOID)((UINT8 *)pPacket + packetLen): NULL); + *ppNext = (info.Extended? (PVOID)((UINT8 *)pPacket + + (info.HeaderLength + info.PayloadLength)): NULL); } if (pNextLen != NULL) { diff --git a/sys/windivert.vcxproj b/sys/windivert.vcxproj index aa54f85..6033836 100644 --- a/sys/windivert.vcxproj +++ b/sys/windivert.vcxproj @@ -45,8 +45,6 @@ x64 - -